﻿using System;
using System.Collections.Generic;
using KKSG;
using MiniJSON;
using UILib;
using UnityEngine;
using XMainClient.UI.UICommon;
using XUpdater;
using XUtliPoolLib;

namespace XMainClient.UI
{
	// Token: 0x02001909 RID: 6409
	internal class XMainInterface : DlgBase<XMainInterface, XMainInterfaceBehaviour>
	{
		// Token: 0x17003AC8 RID: 15048
		// (get) Token: 0x06010BB7 RID: 68535 RVA: 0x0042D0F0 File Offset: 0x0042B2F0
		public XMainInterfaceDocument MainDoc
		{
			get
			{
				return this._main_doc;
			}
		}

		// Token: 0x17003AC9 RID: 15049
		// (get) Token: 0x06010BB8 RID: 68536 RVA: 0x0042D108 File Offset: 0x0042B308
		public bool MenuSwitchBtnState
		{
			get
			{
				return this._MenuSwitchBtnState;
			}
		}

		// Token: 0x17003ACA RID: 15050
		// (get) Token: 0x06010BB9 RID: 68537 RVA: 0x0042D120 File Offset: 0x0042B320
		public override string fileName
		{
			get
			{
				return "Hall/HallDlg";
			}
		}

		// Token: 0x17003ACB RID: 15051
		// (get) Token: 0x06010BBA RID: 68538 RVA: 0x0042D138 File Offset: 0x0042B338
		public override int layer
		{
			get
			{
				return 1;
			}
		}

		// Token: 0x17003ACC RID: 15052
		// (get) Token: 0x06010BBB RID: 68539 RVA: 0x0042D14C File Offset: 0x0042B34C
		public override bool isMainUI
		{
			get
			{
				return true;
			}
		}

		// Token: 0x17003ACD RID: 15053
		// (get) Token: 0x06010BBC RID: 68540 RVA: 0x0042D160 File Offset: 0x0042B360
		public override bool autoload
		{
			get
			{
				return true;
			}
		}

		// Token: 0x06010BBD RID: 68541 RVA: 0x0042D174 File Offset: 0x0042B374
		public XMainInterface()
		{
			this._refreshFatigeTimeCb = new XTimerMgr.ElapsedEventHandler(this.RefreshFatigeTime);
			this._showFatigeRecoverTimeCb = new XTimerMgr.ElapsedEventHandler(this.ShowFatigeRecoverTime);
		}

		// Token: 0x06010BBE RID: 68542 RVA: 0x0042D27C File Offset: 0x0042B47C
		protected override void Init()
		{
			this._platform = XSingleton<XUpdater.XUpdater>.singleton.XPlatform;
			XPlayer player = XSingleton<XEntityMgr>.singleton.Player;
			XPlayerAttributes xplayerAttributes = player.Attributes as XPlayerAttributes;
			this._curPPT = (int)xplayerAttributes.GetAttr(XAttributeDefine.XAttr_POWER_POINT_Basic);
			this._main_doc = XDocuments.GetSpecificDocument<XMainInterfaceDocument>(XMainInterfaceDocument.uuID);
			this._main_doc.View = this;
			this._achievement_doc = XDocuments.GetSpecificDocument<XAchievementDocument>(XAchievementDocument.uuID);
			this._achievement_doc.HallMainView = this;
			this.DramaDlgCloseTime = 0f;
			DlgHandlerBase.EnsureCreate<XMainInterfaceBriefHandler>(ref this._TaskNaviHandler, base.uiBehaviour.m_TaskNaviFrame.transform, true, null);
			this._MulActTipsCD = XSingleton<XGlobalConfig>.singleton.GetInt("MulActivityTipsCD");
			this._V3SwitchBtnState = false;
			this._MenuSwitchBtnState = true;
			this._H2SwitchBtnState = true;
		}

		// Token: 0x06010BBF RID: 68543 RVA: 0x0042D350 File Offset: 0x0042B550
		protected override void OnLoad()
		{
			DlgHandlerBase.EnsureCreate<HomeHandler>(ref this._HomeHandler, base.uiBehaviour.m_HomeGo.transform, true, null);
			DlgHandlerBase.EnsureCreate<XYuyinView>(ref this._yuyinHandler, base.uiBehaviour.transform, true, this);
			DlgHandlerBase.EnsureCreate<WeddingSceneHandler>(ref this._WeddingHandler, base.uiBehaviour.m_HomeGo.transform, true, null);
			DlgHandlerBase.EnsureCreate<XMainSubstanceHandler>(ref this._substanceHandler, base.uiBehaviour.m_SysGrid, null, true);
			DlgHandlerBase.EnsureCreate<YorozuyaHandler>(ref this._yorozuyaHandler, base.uiBehaviour.transform, true, null);
			DlgHandlerBase.EnsureCreate<DanceMotionHandler>(ref this._DanceMotionHandler, base.uiBehaviour.m_DanceMotion, null, false);
			bool flag = XSingleton<XScene>.singleton.SceneType == SceneType.SKYCITY_WAITING || XSingleton<XScene>.singleton.SceneType == SceneType.SCENE_HORSE || XSingleton<XScene>.singleton.SceneType == SceneType.SCENE_BATTLEFIELD_READY || XSingleton<XScene>.singleton.SceneType == SceneType.SCENE_BIGMELEE_READY;
			if (flag)
			{
				DlgHandlerBase.EnsureCreate<SkyArenaWaitHandler>(ref this._WaitHandler, base.uiBehaviour.m_Canvas, true, this);
			}
		}

		// Token: 0x06010BC0 RID: 68544 RVA: 0x0042D458 File Offset: 0x0042B658
		protected override void OnUnload()
		{
			this._LevelSealCDCounter = null;
			this.m_uiBehaviour.m_txtAvatar.SetTexturePath("");
			XBigMeleeEntranceDocument specificDocument = XDocuments.GetSpecificDocument<XBigMeleeEntranceDocument>(XBigMeleeEntranceDocument.uuID);
			DlgHandlerBase.EnsureUnload<BigMeleeRankHandler>(ref specificDocument.RankHandler);
			DlgHandlerBase.EnsureUnload<HomeHandler>(ref this._HomeHandler);
			DlgHandlerBase.EnsureUnload<WeddingSceneHandler>(ref this._WeddingHandler);
			DlgHandlerBase.EnsureUnload<XMainInterfaceBriefHandler>(ref this._TaskNaviHandler);
			DlgHandlerBase.EnsureUnload<SkyArenaWaitHandler>(ref this._WaitHandler);
			DlgHandlerBase.EnsureUnload<XYuyinView>(ref this._yuyinHandler);
			DlgHandlerBase.EnsureUnload<GameCommunityHandler>(ref this._GameCommunityHandler);
			DlgHandlerBase.EnsureUnload<XMainSubstanceHandler>(ref this._substanceHandler);
			DlgHandlerBase.EnsureUnload<YorozuyaHandler>(ref this._yorozuyaHandler);
			DlgHandlerBase.EnsureUnload<DanceMotionHandler>(ref this._DanceMotionHandler);
			this._main_doc.View = null;
			XSingleton<XGameSysMgr>.singleton.Reset();
			this._MenuSwitchBtnState = true;
			XSingleton<XTimerMgr>.singleton.KillTimer(this.MulActTipsToken);
			if (this.m_activityFx != null)
			{
				XSingleton<XFxMgr>.singleton.DestroyFx(this.m_activityFx, true);
				this.m_activityFx = null;
			}
			base.OnUnload();
		}

		// Token: 0x06010BC1 RID: 68545 RVA: 0x0042D568 File Offset: 0x0042B768
		protected override void OnShow()
		{
			base.OnShow();
			this.lastPingTime = -60f;
			this._SetSceneUI();
			this._main_doc.Present();
			this.lastSelectV3Button = null;
			XPlatformAbilityDocument.Doc.QueryQQVipInfo();
			DlgBase<XChatSmallView, XChatSmallBehaviour>.singleton.ShowChatDefaultMiniUI();
			if (!DlgBase<XChatSmallView, XChatSmallBehaviour>.singleton.IsInited)
			{
				DlgBase<XChatSmallView, XChatSmallBehaviour>.singleton.ShowPanel(false);
			}
			DlgBase<BroadMiniDlg, BroadcastMiniBehaviour>.singleton.Show(true);
			DlgBase<RadioDlg, RadioBehaviour>.singleton.Show(true);
			XFriendsDocument specificDocument = XDocuments.GetSpecificDocument<XFriendsDocument>(XFriendsDocument.uuID);
			specificDocument.ReqFriendsInfo();
			this.RefreshSysAnnounce();
			base.uiBehaviour.m_RecoverTime.SetVisible(false);
			XSingleton<XChatIFlyMgr>.singleton.InitFlyMgr();
			XSingleton<XScreenShotMgr>.singleton.Init();
			this._InitH5();
			this.HandlerYuyin();
			this.RefreshMoneyInfo(0, false);
			this.CalMenuSwitchBtnRedPointState();
			this.CalH2SwitchBtnRedPointState(null);
			this._main_doc.OnLoadWebViewConfig();
			XDanceDocument.Doc.GetAllDanceIDs();
			this.SetActivityEffect(false);
		}

		// Token: 0x06010BC2 RID: 68546 RVA: 0x0042D674 File Offset: 0x0042B874
		private void _InitH5()
		{
			foreach (XSysDefine sys in XSingleton<XGameSysMgr>.singleton.SysH5)
			{
				this.RefreshH5ButtonState(sys, false);
			}
			if (this._substanceHandler != null && this._substanceHandler.IsVisible())
			{
				this._substanceHandler.Sort();
			}
			XSpectateDocument specificDocument = XDocuments.GetSpecificDocument<XSpectateDocument>(XSpectateDocument.uuID);
			this.ShowLiveCount(specificDocument.LiveCount);
			this.InitSevenLoginWhenShow();
		}

		// Token: 0x06010BC3 RID: 68547 RVA: 0x0042D718 File Offset: 0x0042B918
		protected override void OnSetVisiblePure(bool bShow)
		{
			base.OnSetVisiblePure(bShow);
			if (bShow)
			{
				this._InitH5();
				this.RefreshMoneyInfo(0, false);
				if (DlgBase<XMainInterface, XMainInterfaceBehaviour>.singleton._TaskNaviHandler.TaskHandler.IsVisible())
				{
					DlgBase<XMainInterface, XMainInterfaceBehaviour>.singleton._TaskNaviHandler.TaskHandler.RefreshData();
				}
			}
		}

		// Token: 0x06010BC4 RID: 68548 RVA: 0x0042D774 File Offset: 0x0042B974
		private void HandlerYuyin()
		{
			YuyinIconType type = YuyinIconType.Hall;
			SceneType sceneType = XSingleton<XScene>.singleton.SceneType;
			if (sceneType <= SceneType.SCENE_GUILD_HALL)
			{
				if (sceneType != SceneType.SCENE_HALL)
				{
					if (sceneType == SceneType.SCENE_GUILD_HALL)
					{
						type = YuyinIconType.Guild;
					}
				}
				else
				{
					type = YuyinIconType.Hall;
				}
			}
			else if (sceneType != SceneType.SCENE_FAMILYGARDEN)
			{
				if (sceneType == SceneType.SCENE_LEISURE)
				{
					type = YuyinIconType.LEISURE;
				}
			}
			else
			{
				type = YuyinIconType.HOME;
			}
			if (this._yuyinHandler != null)
			{
				this._yuyinHandler.Refresh(type);
				if (this._yuyinHandler.m_panel != null && this._yuyinHandler.m_panel.gameObject != null)
				{
					this._yuyinHandler.m_panel.gameObject.SetActive(this.fakeShow);
				}
			}
		}

		// Token: 0x06010BC5 RID: 68549 RVA: 0x0042D824 File Offset: 0x0042BA24
		protected override void OnHide()
		{
			base.OnHide();
			DlgBase<XChatSmallView, XChatSmallBehaviour>.singleton.SetVisible(false, true);
			DlgBase<BroadMiniDlg, BroadcastMiniBehaviour>.singleton.Show(false);
			DlgBase<RadioDlg, RadioBehaviour>.singleton.Show(false);
			this._LevelSealCDCounter = null;
		}

		// Token: 0x06010BC6 RID: 68550 RVA: 0x0042D85C File Offset: 0x0042BA5C
		private void _SetSceneUI()
		{
			this.m_curScene = XSingleton<XScene>.singleton.SceneType;
			this._yorozuyaHandler.SetVisible(false);
			SceneType curScene = this.m_curScene;
			if (curScene <= SceneType.SKYCITY_WAITING)
			{
				if (curScene <= SceneType.SCENE_GUILD_HALL)
				{
					if (curScene == SceneType.SCENE_HALL)
					{
						this.SetHallUi();
						this._bH1Opened = true;
						return;
					}
					if (curScene != SceneType.SCENE_GUILD_HALL)
					{
						goto IL_D8;
					}
					this.SetGuildHallUi();
					this._bH1Opened = false;
					return;
				}
				else
				{
					if (curScene == SceneType.SCENE_FAMILYGARDEN)
					{
						this.SetHomeUi();
						this._bH1Opened = true;
						return;
					}
					if (curScene != SceneType.SKYCITY_WAITING)
					{
						goto IL_D8;
					}
				}
			}
			else if (curScene <= SceneType.SCENE_BIGMELEE_READY)
			{
				if (curScene != SceneType.SCENE_HORSE && curScene != SceneType.SCENE_BIGMELEE_READY)
				{
					goto IL_D8;
				}
			}
			else
			{
				if (curScene == SceneType.SCENE_WEDDING)
				{
					this.SetWeddingUI();
					this._bH1Opened = true;
					return;
				}
				if (curScene != SceneType.SCENE_BATTLEFIELD_READY)
				{
					if (curScene != SceneType.SCENE_LEISURE)
					{
						goto IL_D8;
					}
					this.SetLeisureUi();
					this._bH1Opened = true;
					return;
				}
			}
			this.SetWaitingUi();
			this._bH1Opened = true;
			return;
			IL_D8:
			this.SetHallUi();
		}

		// Token: 0x06010BC7 RID: 68551 RVA: 0x0042D94C File Offset: 0x0042BB4C
		private void SetHallUi()
		{
			this._TaskNaviHandler.SetVisible(true);
			base.uiBehaviour.m_SysListH1.SetVisible(true);
			base.uiBehaviour.m_SysListH0.SetVisible(true);
			base.uiBehaviour.m_SysListV1.SetVisible(true);
			base.uiBehaviour.m_SecondMenu.SetActive(true);
			this._substanceHandler.SetVisible(true);
			base.uiBehaviour.m_MenuSwitchBtn.SetVisible(true);
			this._WeddingHandler.SetVisible(false);
			this._HomeHandler.SetVisible(false);
			base.uiBehaviour.m_SysListH3.SetVisible(false);
			base.uiBehaviour.m_ExitGuild.SetVisible(false);
			base.uiBehaviour.m_SysListGuildH1.SetVisible(false);
			base.uiBehaviour.m_SysListGuildV1.SetVisible(false);
			base.uiBehaviour.m_SysListGuildH2.SetVisible(false);
			this.OnMainSysChange();
		}

		// Token: 0x06010BC8 RID: 68552 RVA: 0x0042DA4C File Offset: 0x0042BC4C
		private void SetGuildHallUi()
		{
			this._WeddingHandler.SetVisible(false);
			this._HomeHandler.SetVisible(false);
			this._TaskNaviHandler.SetVisible(false);
			base.uiBehaviour.m_SysListH3.SetVisible(false);
			base.uiBehaviour.m_SysListH1.SetVisible(true);
			base.uiBehaviour.m_SysListH0.SetVisible(false);
			base.uiBehaviour.m_SysListV1.SetVisible(false);
			base.uiBehaviour.m_SecondMenu.SetActive(false);
			this._substanceHandler.SetVisible(true);
			base.uiBehaviour.m_MenuSwitchBtn.SetVisible(true);
			base.uiBehaviour.m_ExitGuild.SetVisible(true);
			base.uiBehaviour.m_SysListGuildH1.SetVisible(true);
			base.uiBehaviour.m_SysListGuildV1.SetVisible(true);
			base.uiBehaviour.m_SysListGuildH2.SetVisible(true);
			base.uiBehaviour.m_SysListH0.CloseList();
			base.uiBehaviour.m_SysListH3.CloseList();
			this._ShowGuildMenu();
			this.RefreshV3H1OnOtherScene();
			bool menuSwitchBtnState = this._MenuSwitchBtnState;
			if (menuSwitchBtnState)
			{
				this.OnMenuSwitchBtnClick(null);
			}
		}

		// Token: 0x06010BC9 RID: 68553 RVA: 0x0042DB84 File Offset: 0x0042BD84
		private void SetWaitingUi()
		{
			this._WeddingHandler.SetVisible(false);
			this._HomeHandler.SetVisible(false);
			base.uiBehaviour.m_SysListH3.SetVisible(false);
			base.uiBehaviour.m_SysListV1.SetVisible(false);
			base.uiBehaviour.m_SecondMenu.SetActive(false);
			base.uiBehaviour.m_ExitGuild.SetVisible(false);
			this._substanceHandler.SetVisible(false);
			base.uiBehaviour.m_SysListGuildH1.SetVisible(false);
			base.uiBehaviour.m_SysListGuildV1.SetVisible(false);
			base.uiBehaviour.m_SysListGuildH2.SetVisible(false);
			XTeamDocument specificDocument = XDocuments.GetSpecificDocument<XTeamDocument>(XTeamDocument.uuID);
			if (XSingleton<XScene>.singleton.SceneType == SceneType.SKYCITY_WAITING)
			{
				this._TaskNaviHandler.SetVisible(specificDocument.bInTeam);
			}
			if (XSingleton<XScene>.singleton.SceneType == SceneType.SCENE_HORSE || XSingleton<XScene>.singleton.SceneType == SceneType.SCENE_BIGMELEE_READY || XSingleton<XScene>.singleton.SceneType == SceneType.SCENE_BATTLEFIELD_READY)
			{
				this._TaskNaviHandler.SetVisible(false);
			}
			if (XSingleton<XScene>.singleton.SceneType == SceneType.SCENE_BIGMELEE_READY)
			{
				base.uiBehaviour.m_SysListH1.SetVisible(false);
				base.uiBehaviour.m_SysListH0.SetVisible(false);
				base.uiBehaviour.m_MenuSwitchBtn.SetVisible(false);
			}
			else
			{
				base.uiBehaviour.m_SysListH1.SetVisible(true);
				base.uiBehaviour.m_SysListH0.SetVisible(true);
				base.uiBehaviour.m_MenuSwitchBtn.SetVisible(true);
			}
			this.RefreshV3H1OnOtherScene();
		}

		// Token: 0x06010BCA RID: 68554 RVA: 0x0042DD34 File Offset: 0x0042BF34
		private void SetHomeUi()
		{
			this._HomeHandler.SetVisible(true);
			this.BottomDownBtns(true);
			this._WeddingHandler.SetVisible(false);
			this._TaskNaviHandler.SetVisible(false);
			base.uiBehaviour.m_ExitGuild.SetVisible(false);
			base.uiBehaviour.m_SysListH0.SetVisible(false);
			this._substanceHandler.SetVisible(false);
			base.uiBehaviour.m_SysListV1.SetVisible(false);
			base.uiBehaviour.m_SecondMenu.SetActive(false);
			base.uiBehaviour.m_SysListGuildH1.SetVisible(false);
			base.uiBehaviour.m_SysListGuildV1.SetVisible(false);
			base.uiBehaviour.m_SysListGuildH2.SetVisible(false);
			bool menuSwitchBtnState = this._MenuSwitchBtnState;
			if (menuSwitchBtnState)
			{
				this.OnMenuSwitchBtnClick(null);
			}
			this.OnMainSysChange();
		}

		// Token: 0x06010BCB RID: 68555 RVA: 0x0042DE18 File Offset: 0x0042C018
		private void SetWeddingUI()
		{
			this._WeddingHandler.SetVisible(true);
			base.uiBehaviour.m_V3SwitchBtn.SetVisible(true);
			base.uiBehaviour.m_SysListV3.SetVisible(true);
			this._HomeHandler.SetVisible(false);
			this._TaskNaviHandler.SetVisible(false);
			base.uiBehaviour.m_ExitGuild.SetVisible(false);
			base.uiBehaviour.m_SysListV1.SetVisible(false);
			base.uiBehaviour.m_SecondMenu.SetActive(false);
			this._substanceHandler.SetVisible(false);
			base.uiBehaviour.m_SysListGuildH1.SetVisible(false);
			base.uiBehaviour.m_SysListGuildV1.SetVisible(false);
			base.uiBehaviour.m_SysListGuildH2.SetVisible(false);
			base.uiBehaviour.m_SysListH3.SetVisible(false);
			base.uiBehaviour.m_SysListH1.SetVisible(false);
			base.uiBehaviour.m_MenuSwitchBtn.SetVisible(false);
			this.OnMainSysChange();
		}

		// Token: 0x06010BCC RID: 68556 RVA: 0x0042DF28 File Offset: 0x0042C128
		private void SetLeisureUi()
		{
			this._yorozuyaHandler.SetVisible(true);
			this._WeddingHandler.SetVisible(false);
			base.uiBehaviour.m_V3SwitchBtn.SetVisible(false);
			base.uiBehaviour.m_SysListV3.SetVisible(false);
			this._HomeHandler.SetVisible(false);
			this._TaskNaviHandler.SetVisible(false);
			base.uiBehaviour.m_ExitGuild.SetVisible(false);
			base.uiBehaviour.m_SysListV1.SetVisible(false);
			base.uiBehaviour.m_SecondMenu.SetActive(false);
			this._substanceHandler.SetVisible(false);
			base.uiBehaviour.m_SysListGuildH1.SetVisible(false);
			base.uiBehaviour.m_SysListGuildV1.SetVisible(false);
			base.uiBehaviour.m_SysListGuildH2.SetVisible(false);
			base.uiBehaviour.m_SysListH3.SetVisible(false);
			base.uiBehaviour.m_SysListH1.SetVisible(false);
			base.uiBehaviour.m_MenuSwitchBtn.SetVisible(false);
		}

		// Token: 0x06010BCD RID: 68557 RVA: 0x0042E040 File Offset: 0x0042C240
		public void BottomDownBtns(bool visible)
		{
			base.uiBehaviour.m_V3SwitchBtn.SetVisible(visible);
			base.uiBehaviour.m_SysListV3.SetVisible(visible);
			base.uiBehaviour.m_SysListH3.SetVisible(visible);
			base.uiBehaviour.m_SysListH1.SetVisible(visible);
			base.uiBehaviour.m_MenuSwitchBtn.SetVisible(visible);
		}

		// Token: 0x06010BCE RID: 68558 RVA: 0x0042E0A8 File Offset: 0x0042C2A8
		public override void RegisterEvent()
		{
			base.uiBehaviour.m_MenuSwitchBtn.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnMenuSwitchBtnClick));
			base.uiBehaviour.m_H2SwitchBtn.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnH2SwitchBtnClick));
			base.uiBehaviour.m_H2ListTween.RegisterOnFinishEventHandler(new OnTweenFinishEventHandler(this.CalH2SwitchBtnRedPointState));
			base.uiBehaviour.m_PlayerAvatar.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnAvatarClick));
			for (int i = 0; i < base.uiBehaviour.m_SysButtonsMapping.Length; i++)
			{
				IXUIButton ixuibutton = base.uiBehaviour.m_SysButtonsMapping[i];
				if (ixuibutton != null)
				{
					ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSysIconClicked));
				}
			}
			base.uiBehaviour.m_ExitGuild.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnExitGuildClick));
			base.uiBehaviour.m_V3SwitchBtn.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnV3SwitchBtnClick));
			base.uiBehaviour.m_MotionDance.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnMotionClicked));
			base.uiBehaviour.m_MotionLover.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnMotionClicked));
		}

		// Token: 0x06010BCF RID: 68559 RVA: 0x0042E1E8 File Offset: 0x0042C3E8
		public override void OnUpdate()
		{
			if (XSingleton<XTimerMgr>.singleton.NeedFixedUpdate)
			{
				base.OnUpdate();
				if (this.isLevelSealCountdown && this._LevelSealCDCounter != null)
				{
					this._LevelSealCDCounter.Update();
				}
				if (this._V3SwitchBtnState)
				{
					base.uiBehaviour.m_TransformLeftTime.Update();
				}
				if (this.lastDebugUITrigger > 0f)
				{
					this.lastDebugUITrigger -= Time.deltaTime;
				}
				if (this.lastDebugUITrigger <= 0f && Input.GetKey((KeyCode)285))
				{
					DlgBase<DemoUI, DemoUIBehaviour>.singleton.Toggle();
					this.lastDebugUITrigger = 0.05f;
				}
				if (Input.GetKey((KeyCode)96))
				{
					if (Input.GetKey((KeyCode)256) || Input.GetKey((KeyCode)48))
					{
						XSingleton<XCommand>.singleton.CustomCommand(0);
					}
					if (Input.GetKey((KeyCode)257) || Input.GetKey((KeyCode)49))
					{
						XSingleton<XCommand>.singleton.CustomCommand(1);
					}
					if (Input.GetKey((KeyCode)258) || Input.GetKey((KeyCode)50))
					{
						XSingleton<XCommand>.singleton.CustomCommand(2);
					}
					if (Input.GetKey((KeyCode)259) || Input.GetKey((KeyCode)51))
					{
						XSingleton<XCommand>.singleton.CustomCommand(3);
					}
					if (Input.GetKey((KeyCode)260) || Input.GetKey((KeyCode)52))
					{
						XSingleton<XCommand>.singleton.CustomCommand(4);
					}
					if (Input.GetKey((KeyCode)261) || Input.GetKey((KeyCode)53))
					{
						XSingleton<XCommand>.singleton.CustomCommand(5);
					}
					if (Input.GetKey((KeyCode)262) || Input.GetKey((KeyCode)54))
					{
						XSingleton<XCommand>.singleton.CustomCommand(6);
					}
					if (Input.GetKey((KeyCode)263) || Input.GetKey((KeyCode)55))
					{
						XSingleton<XCommand>.singleton.CustomCommand(7);
					}
					if (Input.GetKey((KeyCode)264) || Input.GetKey((KeyCode)56))
					{
						XSingleton<XCommand>.singleton.CustomCommand(8);
					}
					if (Input.GetKey((KeyCode)265) || Input.GetKey((KeyCode)57))
					{
						XSingleton<XCommand>.singleton.CustomCommand(9);
					}
				}
				this.UpdateRedPointState();
				this.UpdateWifi();
				if (Time.unscaledTime - this.lastPingTime > 60f || this.lastPingTime < 0f)
				{
					this.lastPingTime = Time.unscaledTime;
					this.RefreshPing();
				}
			}
		}

		// Token: 0x06010BD0 RID: 68560 RVA: 0x0042E4A0 File Offset: 0x0042C6A0
		public void RefreshMoneyInfo(int itemid = 0, bool bAnim = false)
		{
			for (int i = 0; i < this.m_uiBehaviour.m_MoneyList.Count; i++)
			{
				if (itemid == 0 || this.m_uiBehaviour.m_MoneyList[i].ItemID == itemid)
				{
					this.m_uiBehaviour.m_MoneyList[i].RefreshValue(bAnim);
					if (itemid != 0)
					{
						break;
					}
				}
			}
		}

		// Token: 0x06010BD1 RID: 68561 RVA: 0x000FEEFC File Offset: 0x000FD0FC
		public void UpdateRedPointState()
		{
		}

		// Token: 0x06010BD2 RID: 68562 RVA: 0x0042E518 File Offset: 0x0042C718
		private void UpdateWifi()
		{
			IXUIButton sysButton = this.m_uiBehaviour.GetSysButton(XSysDefine.XSys_Wifi);
			if (sysButton != null)
			{
				XSingleton<UiUtility>.singleton.UpdateWifi(sysButton, null);
			}
		}

		// Token: 0x06010BD3 RID: 68563 RVA: 0x0042E54C File Offset: 0x0042C74C
		private void _ShowGuildMenu()
		{
			foreach (XSysDefine sys in base.uiBehaviour.m_SysGuild)
			{
				base.uiBehaviour.GetSysButton(sys).SetVisible(true);
			}
			this.OnGuildSysChange();
			base.uiBehaviour.m_SysListGuildH1.SetAnimateSmooth(true);
			base.uiBehaviour.m_SysListGuildV1.SetAnimateSmooth(true);
			base.uiBehaviour.m_SysListGuildH2.SetAnimateSmooth(true);
			base.uiBehaviour.m_SysListGuildH1.Refresh();
			base.uiBehaviour.m_SysListGuildV1.Refresh();
			base.uiBehaviour.m_SysListGuildH2.Refresh();
		}

		// Token: 0x06010BD4 RID: 68564 RVA: 0x0042E600 File Offset: 0x0042C800
		public void RefreshSysAnnounce()
		{
			if (XSingleton<XScene>.singleton.SceneType != SceneType.SKYCITY_WAITING)
			{
				if (DlgBase<AnnounceView, AnnounceBehaviour>.singleton.IsVisible())
				{
					DlgBase<AnnounceView, AnnounceBehaviour>.singleton.RefreshUI();
				}
			}
		}

		// Token: 0x06010BD5 RID: 68565 RVA: 0x0042E640 File Offset: 0x0042C840
		public void RefreshWelcomeBackFlow()
		{
			if (this.MainDoc.BackFlow && XSingleton<XScene>.singleton.SceneType == SceneType.SCENE_HALL)
			{
				this.OnShowFlowBack();
			}
		}

		// Token: 0x06010BD6 RID: 68566 RVA: 0x0042E678 File Offset: 0x0042C878
		public void OnGuildSysChange()
		{
			XGuildDocument specificDocument = XDocuments.GetSpecificDocument<XGuildDocument>(XGuildDocument.uuID);
			foreach (XSysDefine sys in base.uiBehaviour.m_SysGuild)
			{
				uint unlockLevel = XGuildDocument.GuildConfig.GetUnlockLevel(sys);
				IXUIButton sysButton = base.uiBehaviour.GetSysButton(sys);
				Transform transform = sysButton.gameObject.transform.Find("OpenAtLevel");
				IXUILabel ixuilabel = null;
				IXUISprite ixuisprite = sysButton.gameObject.GetComponent("XUISprite") as IXUISprite;
				if (transform != null)
				{
					ixuilabel = (transform.GetComponent("XUILabel") as IXUILabel);
					ixuilabel.SetText(string.Empty);
				}
				if (specificDocument.bInGuild && specificDocument.Level >= unlockLevel && XSingleton<XGameSysMgr>.singleton.IsSystemOpened(sys))
				{
					try
					{
						if (ixuisprite != null)
						{
							ixuisprite.SetColor(Color.white);
						}
						if (ixuilabel != null)
						{
							ixuilabel.SetVisible(false);
						}
					}
					catch (Exception ex)
					{
						XSingleton<XDebug>.singleton.AddErrorLog(sysButton.gameObject.name, null, null, null, null, null);
						XSingleton<XDebug>.singleton.AddErrorLog(ex.Message, null, null, null, null, null);
					}
				}
				else
				{
					if (ixuilabel != null)
					{
						ixuilabel.SetVisible(true);
					}
				}
			}
			foreach (XSysDefine xsysDefine in base.uiBehaviour.m_SysGuildNormal)
			{
				IXUIButton sysButton2 = base.uiBehaviour.GetSysButton(xsysDefine);
				bool flag6 = XSingleton<XGameSysMgr>.singleton.IsSystemOpened(xsysDefine);
				XSysDefine xsysDefine2 = xsysDefine;
				if (xsysDefine2 == XSysDefine.XSys_GuildCollect || xsysDefine2 == XSysDefine.XSys_GuildCollectSummon)
				{
					XGuildCollectDocument specificDocument2 = XDocuments.GetSpecificDocument<XGuildCollectDocument>(XGuildCollectDocument.uuID);
					flag6 = (flag6 && specificDocument2.ActivityState);
				}
				base.uiBehaviour.GetSysButton(xsysDefine).SetVisible(flag6);
			}
			base.uiBehaviour.m_SysListH2.Refresh();
		}

		// Token: 0x06010BD7 RID: 68567 RVA: 0x0042E8B4 File Offset: 0x0042CAB4
		public void OnTitanSysChange()
		{
			XPlayerAttributes attr = XSingleton<XEntityMgr>.singleton.Player.Attributes as XPlayerAttributes;
			bool flag = XSingleton<UIManager>.singleton.IsUIShowed();
			int num = 0;
			for (int i = 0; i < base.uiBehaviour.m_SysH4.Length; i++)
			{
				XSysDefine xsysDefine = base.uiBehaviour.m_SysH4[i];
				bool flag2 = XSingleton<XGameSysMgr>.singleton.IsSystemOpened(xsysDefine, attr);
				if (flag)
				{
					XSysDefine xsysDefine2 = xsysDefine;
					if (xsysDefine2 == XSysDefine.XSys_Mail || xsysDefine2 == XSysDefine.XSys_Setting)
					{
						flag2 = false;
					}
				}
				IXUIButton sysButton = base.uiBehaviour.GetSysButton(xsysDefine);
				sysButton.SetVisible(flag2);
				if (flag2)
				{
					num++;
				}
			}
		}

		// Token: 0x06010BD8 RID: 68568 RVA: 0x0042E970 File Offset: 0x0042CB70
		public void OnMainSysChange()
		{
			if (base.IsLoaded())
			{
				for (int i = 0; i < base.uiBehaviour.m_ListSys.Count; i++)
				{
					XSysDefine xsysDefine = base.uiBehaviour.m_ListSys[i];
					if (!XSingleton<XGameSysMgr>.singleton.SysH5.Contains(xsysDefine))
					{
						if (!base.uiBehaviour.m_SysGuildNormal.Contains(xsysDefine))
						{
							this.OnSingleSysChange(xsysDefine, false);
						}
					}
				}
				this.RefreshAllList();
			}
		}

		// Token: 0x06010BD9 RID: 68569 RVA: 0x0042EA04 File Offset: 0x0042CC04
		public void OnSingleSysChange(XSysDefine sys, bool refreshList = true)
		{
			if (base.IsLoaded())
			{
				if (base.uiBehaviour.GetSysButton(sys) != null)
				{
					bool flag3 = XSingleton<XGameSysMgr>.singleton.IsSystemOpened(sys, XSingleton<XAttributeMgr>.singleton.XPlayerData);
					if (sys <= XSysDefine.XSys_Welfare_NiceGirl)
					{
						if (sys <= XSysDefine.XSys_OnlineReward)
						{
							if (sys != XSysDefine.XSys_Guild)
							{
								if (sys == XSysDefine.XSys_OnlineReward)
								{
									XOnlineRewardDocument specificDocument = XDocuments.GetSpecificDocument<XOnlineRewardDocument>(XOnlineRewardDocument.uuID);
									flag3 = (flag3 && specificDocument.CheckOver());
								}
							}
							else
							{
								flag3 = (flag3 && this.m_curScene != SceneType.SCENE_GUILD_HALL);
							}
						}
						else if (sys != XSysDefine.XSys_Broadcast)
						{
							if (sys != XSysDefine.XSys_SevenActivity)
							{
								if (sys == XSysDefine.XSys_Welfare_NiceGirl)
								{
									flag3 = (flag3 && XWelfareDocument.Doc.ArgentaMainInterfaceState && !XWelfareDocument.Doc.IsNiceGirlTasksFinished());
								}
							}
							else
							{
								XSevenLoginDocument specificDocument2 = XDocuments.GetSpecificDocument<XSevenLoginDocument>(XSevenLoginDocument.uuID);
								flag3 = (flag3 && specificDocument2.bHasAvailableSevenIcon);
							}
						}
						else
						{
							flag3 = (flag3 && XSingleton<XLoginDocument>.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ && this.IsSupportQgame());
						}
					}
					else if (sys <= XSysDefine.XSys_Photo)
					{
						if (sys != XSysDefine.XSys_OperatingActivity)
						{
							if (sys != XSysDefine.XSys_ThemeActivity)
							{
								if (sys == XSysDefine.XSys_Photo)
								{
									int num = int.Parse(XSingleton<XGlobalConfig>.singleton.GetValue("PlatfromAbility"));
									flag3 = (num != 0 && this.m_curScene != SceneType.SCENE_HORSE_RACE && this.m_curScene != SceneType.SCENE_HORSE && this.m_curScene != SceneType.SCENE_HEROBATTLE && this.m_curScene != SceneType.SCENE_BIGMELEE_READY);
									if (flag3)
									{
										flag3 = XSingleton<XGameSysMgr>.singleton.IsSystemOpened(XSysDefine.XSys_Photo);
									}
								}
							}
							else
							{
								XThemeActivityDocument specificDocument3 = XDocuments.GetSpecificDocument<XThemeActivityDocument>(XThemeActivityDocument.uuID);
								flag3 = (flag3 && specificDocument3.isHasHallIcon());
							}
						}
						else
						{
							bool flag5 = XDocuments.GetSpecificDocument<XLevelSealDocument>(XLevelSealDocument.uuID).IsShowLevelSealIcon();
							base.uiBehaviour.m_RemoveSealTip.SetVisible(flag5);
							if (flag5)
							{
								this.ShowRemoveSealLeftTime(base.uiBehaviour.m_RemoveSealTip, ref this._LevelSealCDCounter, ref this.isLevelSealCountdown);
							}
							else
							{
								this._LevelSealCDCounter = null;
							}
						}
					}
					else if (sys != XSysDefine.XSys_QuickRide)
					{
						switch (sys)
						{
						case XSysDefine.XSys_GameCommunity:
							break;
						case XSysDefine.XSys_GameHorde:
							break;
						case XSysDefine.XSys_FriendCircle:
							flag3 = (flag3 && XSingleton<XLoginDocument>.singleton.Channel == XAuthorizationChannel.XAuthorization_WeChat);
							break;
						case XSysDefine.XSys_QQVIP:
							flag3 = (flag3 && XSingleton<XLoginDocument>.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ);
							break;
						case XSysDefine.XSys_SystemAnnounce:
							flag3 = (flag3 && this.SetSystemAnnounce());
							break;
						default:
							if (sys == XSysDefine.XSys_Platform_StartPrivilege)
							{
								flag3 = (flag3 && (XSingleton<XLoginDocument>.singleton.Channel == XAuthorizationChannel.XAuthorization_WeChat || XSingleton<XLoginDocument>.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ));
								if (flag3)
								{
									IXUIButton sysButton = base.uiBehaviour.GetSysButton(XSysDefine.XSys_Platform_StartPrivilege);
									if (sysButton != null)
									{
										Transform transform = sysButton.gameObject.transform.Find("seal");
										if (transform != null)
										{
											IXUISprite ixuisprite = transform.gameObject.GetComponent("XUISprite") as IXUISprite;
											if (ixuisprite != null)
											{
												if (XSingleton<XLoginDocument>.singleton.Channel == XAuthorizationChannel.XAuthorization_WeChat)
												{
													ixuisprite.spriteName = "ptic_04";
												}
												else
												{
													if (XSingleton<XLoginDocument>.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ)
													{
														ixuisprite.spriteName = "ptic_05";
													}
												}
											}
										}
									}
								}
							}
							break;
						}
					}
					else
					{
						flag3 = (flag3 && this.m_curScene != SceneType.SCENE_FAMILYGARDEN && this.m_curScene != SceneType.SCENE_GUILD_HALL && this.m_curScene != SceneType.SCENE_WEDDING && this.m_curScene != SceneType.SCENE_LEISURE);
					}
					base.uiBehaviour.GetSysButton(sys).SetVisible(flag3);
					if (refreshList)
					{
						this.RefreshAllList();
					}
				}
			}
		}

		// Token: 0x06010BDA RID: 68570 RVA: 0x0042EE08 File Offset: 0x0042D008
		public void RefreshAllList()
		{
			SceneType curScene = this.m_curScene;
			if (curScene <= SceneType.SKYCITY_WAITING)
			{
				if (curScene <= SceneType.SCENE_GUILD_HALL)
				{
					if (curScene != SceneType.SCENE_HALL)
					{
						if (curScene != SceneType.SCENE_GUILD_HALL)
						{
							goto IL_CF;
						}
						base.uiBehaviour.m_SysListH2.Refresh();
						base.uiBehaviour.m_SysListH1.Refresh();
						goto IL_CF;
					}
				}
				else
				{
					if (curScene == SceneType.SCENE_FAMILYGARDEN)
					{
						base.uiBehaviour.m_SysListH1.Refresh();
						base.uiBehaviour.m_SysListH3.Refresh();
						goto IL_CF;
					}
					if (curScene != SceneType.SKYCITY_WAITING)
					{
						goto IL_CF;
					}
				}
			}
			else
			{
				if (curScene > SceneType.SCENE_BIGMELEE_READY)
				{
					if (curScene != SceneType.SCENE_WEDDING)
					{
						if (curScene == SceneType.SCENE_BATTLEFIELD_READY)
						{
							goto IL_5E;
						}
						if (curScene != SceneType.SCENE_LEISURE)
						{
							goto IL_CF;
						}
					}
					return;
				}
				if (curScene != SceneType.SCENE_HORSE && curScene != SceneType.SCENE_BIGMELEE_READY)
				{
					goto IL_CF;
				}
			}
			IL_5E:
			base.uiBehaviour.m_SysListH1.Refresh();
			base.uiBehaviour.m_SysListH0.Refresh();
			IL_CF:
			base.uiBehaviour.m_SysListV1.Refresh();
			base.uiBehaviour.m_SysListV2.Refresh();
			base.uiBehaviour.m_SysListV3.Refresh();
			base.uiBehaviour.m_SysListH2_1.Refresh();
			base.uiBehaviour.m_SysListH2_2.Refresh();
			this.RefreshListSwitchBtnVisable(base.uiBehaviour.m_V3SwitchBtn, base.uiBehaviour.m_SysListV3, null);
			this.RefreshListSwitchBtnVisable(base.uiBehaviour.m_H2SwitchBtn, base.uiBehaviour.m_SysListH2_1, base.uiBehaviour.m_SysListH2_2);
			this._TaskNaviHandler.OnSysChange();
		}

		// Token: 0x06010BDB RID: 68571 RVA: 0x0042EF8C File Offset: 0x0042D18C
		public void RefreshH5ButtonState(XSysDefine sys, bool refreshList = true)
		{
			if (base.IsVisible())
			{
				if (this._substanceHandler != null && this._substanceHandler.IsVisible())
				{
					this._substanceHandler.RefreshMainSubStance(sys, refreshList);
				}
			}
		}

		// Token: 0x06010BDC RID: 68572 RVA: 0x0042EFD4 File Offset: 0x0042D1D4
		public void FakeShowSelf(bool bShow)
		{
			this.fakeShow = bShow;
			base.uiBehaviour.m_MainMenuGo.SetActive(bShow);
			DlgBase<BroadMiniDlg, BroadcastMiniBehaviour>.singleton.Show(bShow);
			DlgBase<RadioDlg, RadioBehaviour>.singleton.Show(bShow);
			base.uiBehaviour.m_PING.SetActive(bShow);
			if (this._WaitHandler != null)
			{
				this._WaitHandler.SetVisible(bShow);
			}
			SceneType curScene = this.m_curScene;
			if (curScene <= SceneType.SKYCITY_WAITING)
			{
				if (curScene <= SceneType.SCENE_GUILD_HALL)
				{
					if (curScene == SceneType.SCENE_HALL)
					{
						base.uiBehaviour.m_ExitGuild.SetVisible(false);
						base.uiBehaviour.m_SecondMenu.SetActive(bShow);
						this._TaskNaviHandler.SetVisible(bShow);
						goto IL_234;
					}
					if (curScene != SceneType.SCENE_GUILD_HALL)
					{
						goto IL_213;
					}
					base.uiBehaviour.m_ExitGuild.SetVisible(bShow);
					this._TaskNaviHandler.SetVisible(false);
					base.uiBehaviour.m_SecondMenu.SetActive(false);
					goto IL_234;
				}
				else
				{
					if (curScene == SceneType.SCENE_FAMILYGARDEN)
					{
						XHomeCookAndPartyDocument doc = XHomeCookAndPartyDocument.Doc;
						if (doc.CurBanquetState == 0U)
						{
							this._HomeHandler.SetVisible(bShow);
						}
						base.uiBehaviour.m_ExitGuild.SetVisible(false);
						this._TaskNaviHandler.SetVisible(false);
						base.uiBehaviour.m_SecondMenu.SetActive(false);
						goto IL_234;
					}
					if (curScene != SceneType.SKYCITY_WAITING)
					{
						goto IL_213;
					}
				}
			}
			else
			{
				if (curScene > SceneType.SCENE_BIGMELEE_READY)
				{
					if (curScene != SceneType.SCENE_WEDDING)
					{
						if (curScene == SceneType.SCENE_BATTLEFIELD_READY)
						{
							goto IL_13F;
						}
						if (curScene != SceneType.SCENE_LEISURE)
						{
							goto IL_213;
						}
					}
					base.uiBehaviour.m_ExitGuild.SetVisible(false);
					this._TaskNaviHandler.SetVisible(false);
					base.uiBehaviour.m_SecondMenu.SetActive(false);
					goto IL_234;
				}
				if (curScene != SceneType.SCENE_HORSE && curScene != SceneType.SCENE_BIGMELEE_READY)
				{
					goto IL_213;
				}
			}
			IL_13F:
			XTeamDocument specificDocument = XDocuments.GetSpecificDocument<XTeamDocument>(XTeamDocument.uuID);
			base.uiBehaviour.m_ExitGuild.SetVisible(false);
			this._TaskNaviHandler.SetVisible(bShow && specificDocument.bInTeam);
			base.uiBehaviour.m_SecondMenu.SetActive(false);
			goto IL_234;
			IL_213:
			base.uiBehaviour.m_SecondMenu.SetActive(bShow);
			this._TaskNaviHandler.SetVisible(bShow);
			IL_234:
			base.uiBehaviour.m_AvatarFrame.SetActive(bShow);
			if (this._yuyinHandler != null)
			{
				this._yuyinHandler.m_panel.gameObject.SetActive(bShow);
			}
			DlgBase<XChatSmallView, XChatSmallBehaviour>.singleton.SetFakeHide(!bShow || !base.IsVisible());
			this.RefreshSysAnnounce();
			foreach (XSysDefine sys in XSingleton<XGameSysMgr>.singleton.SysH5)
			{
				this.RefreshH5ButtonState(sys, false);
			}
			if (this._substanceHandler != null && this._substanceHandler.IsVisible())
			{
				this._substanceHandler.Sort();
			}
			this.SetActivityEffect(false);
		}

		// Token: 0x06010BDD RID: 68573 RVA: 0x0042F2F4 File Offset: 0x0042D4F4
		public Vector3 GetNewIconFlyPosH1(XSysDefine sys)
		{
			XPlayerAttributes xplayerAttributes = XSingleton<XEntityMgr>.singleton.Player.Attributes as XPlayerAttributes;
			string name;
			if (sys != XSysDefine.XSys_Item_Enhance)
			{
				name = base.uiBehaviour.GetSysButton(sys).gameObject.name;
			}
			else
			{
				name = base.uiBehaviour.GetSysButton(XSysDefine.XSys_Item).gameObject.name;
			}
			Vector3 childWorldPos = DlgBase<XMainInterface, XMainInterfaceBehaviour>.GetChildWorldPos(name);
			return XSingleton<XGameUI>.singleton.UIRoot.InverseTransformPoint(childWorldPos);
		}

		// Token: 0x06010BDE RID: 68574 RVA: 0x0042F378 File Offset: 0x0042D578
		public void SetActivityEffect(bool isFromTime)
		{
			bool flag = isFromTime && this.m_isFromTime;
			if (!flag)
			{
				this.m_isFromTime = isFromTime;
				if (this.fakeShow)
				{
					IXUIButton ixuibutton = base.uiBehaviour.m_SysButtonsMapping[57];
					if (ixuibutton != null)
					{
						if (this.m_activityFx == null)
						{
							this.m_activityFx = XSingleton<XFxMgr>.singleton.CreateUIFx("Effects/FX_Particle/UIfx/UI_shuangbeijiangli", ixuibutton.gameObject.transform.Find("Icon/Duck"), false);
						}
						bool flag5 = XActivityDocument.Doc.MainCityNeedEffect();
						this.m_activityFx.SetActive(flag5);
						if (flag5)
						{
							XFx.SyncRefreshUIRenderQueue(this.m_activityFx);
						}
					}
				}
			}
		}

		// Token: 0x06010BDF RID: 68575 RVA: 0x0042F436 File Offset: 0x0042D636
		public void SetGridAnimateSmooth(bool b)
		{
			base.uiBehaviour.m_SysListH1.SetAnimateSmooth(b);
			base.uiBehaviour.m_SysListH0.SetAnimateSmooth(b);
			base.uiBehaviour.m_SysListV1.SetAnimateSmooth(b);
		}

		// Token: 0x06010BE0 RID: 68576 RVA: 0x0042F470 File Offset: 0x0042D670
		public void SetupBaseInfo(XAttributes attr)
		{
			int profID = XFastEnumIntEqualityComparer<RoleType>.ToInt(XSingleton<XEntityMgr>.singleton.Player.PlayerAttributes.Profession);
			this.SetAvatar(XSingleton<XProfessionSkillMgr>.singleton.GetProfHeadIcon(profID));
			this.SetVip();
			this.SetLevel(attr.Level);
			this.RefreshQQVipInfo();
			this.RefreshGameCenterInfo();
			this.RefreshSelfMemberPrivilegeIcon();
			this.SetPowerpoint(this._curPPT);
			this.SetExp(attr as XPlayerAttributes);
			XFriendsDocument.Doc.SDKQueryFriends();
			ILuaGameInfo luaGameInfo = XSingleton<XUpdater.XUpdater>.singleton.XLuaEngine.luaGameInfo;
			luaGameInfo.exp = (uint)attr.Exp;
			luaGameInfo.maxexp = (uint)attr.MaxExp;
			luaGameInfo.level = attr.Level;
			luaGameInfo.name = attr.Name;
			luaGameInfo.ppt = this._curPPT;
			luaGameInfo.coin = (uint)XSingleton<XGame>.singleton.Doc.XBagDoc.GetItemCount(1);
			luaGameInfo.energy = (uint)XSingleton<XGame>.singleton.Doc.XBagDoc.GetItemCount(6);
			luaGameInfo.dia = (uint)XSingleton<XGame>.singleton.Doc.XBagDoc.GetItemCount(9);
			luaGameInfo.draggon = (uint)XSingleton<XGame>.singleton.Doc.XBagDoc.GetItemCount(7);
		}

		// Token: 0x06010BE1 RID: 68577 RVA: 0x0042F5C4 File Offset: 0x0042D7C4
		public void SetAvatar(string name)
		{
			IXUISprite ixuisprite = base.uiBehaviour.m_AvatarFrame.transform.Find("Avatar").GetComponent("XUISprite") as IXUISprite;
			ixuisprite.spriteName = name;
			this.SetTencentImage();
		}

		// Token: 0x06010BE2 RID: 68578 RVA: 0x0042F60C File Offset: 0x0042D80C
		public void RefreshQQVipInfo()
		{
			if (base.IsLoaded())
			{
				GameObject gameObject = base.uiBehaviour.m_AvatarFrame.transform.Find("CoverPanel/QQVIP").gameObject;
				GameObject gameObject2 = base.uiBehaviour.m_AvatarFrame.transform.Find("CoverPanel/QQSVIP").gameObject;
				QQVipInfoClient qqvipInfo = XPlatformAbilityDocument.Doc.QQVipInfo;
				if (XSingleton<XLoginDocument>.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ && XSingleton<XGameSysMgr>.singleton.IsSystemOpened(XSysDefine.XSys_QQVIP) && qqvipInfo != null)
				{
					gameObject.SetActive(qqvipInfo.is_vip && !qqvipInfo.is_svip);
					gameObject2.SetActive(qqvipInfo.is_svip);
				}
				else
				{
					gameObject.SetActive(false);
					gameObject2.SetActive(false);
				}
			}
		}

		// Token: 0x06010BE3 RID: 68579 RVA: 0x0042F6E0 File Offset: 0x0042D8E0
		public void RefreshGameCenterInfo()
		{
			if (base.IsLoaded())
			{
				if (base.IsVisible())
				{
					GameObject gameObject = base.uiBehaviour.m_AvatarFrame.transform.Find("CoverPanel/WC").gameObject;
					if (XSingleton<XLoginDocument>.singleton.Channel == XAuthorizationChannel.XAuthorization_WeChat && XSingleton<XGameSysMgr>.singleton.IsSystemOpened(XSysDefine.XSys_Platform_StartPrivilege) && XSingleton<XLoginDocument>.singleton.GetLaunchTypeServerInfo() == StartUpType.StartUp_WX)
					{
						gameObject.SetActive(true);
					}
					else
					{
						gameObject.SetActive(false);
					}
				}
			}
		}

		// Token: 0x06010BE4 RID: 68580 RVA: 0x0042F774 File Offset: 0x0042D974
		public void RefreshSelfMemberPrivilegeIcon()
		{
			if (base.IsLoaded())
			{
				if (DlgBase<XMainInterface, XMainInterfaceBehaviour>.singleton.IsVisible())
				{
					IXUISprite ixuisprite = base.uiBehaviour.m_AvatarFrame.transform.Find("CoverPanel/Tq").GetComponent("XUISprite") as IXUISprite;
					ixuisprite.SetSprite(XWelfareDocument.GetSelfMemberPrivilegeIconName());
				}
			}
		}

		// Token: 0x06010BE5 RID: 68581 RVA: 0x0042F7D8 File Offset: 0x0042D9D8
		public void SetTencentImage()
		{
			if (XSingleton<PDatabase>.singleton.playerInfo != null)
			{
				string pictureLarge = XSingleton<PDatabase>.singleton.playerInfo.data.pictureLarge;
				XSingleton<XUICacheImage>.singleton.SetMainIcon(pictureLarge);
				XSingleton<XUICacheImage>.singleton.Load(pictureLarge, this.m_uiBehaviour.m_txtAvatar, this.m_uiBehaviour);
			}
			else
			{
				XSingleton<XUICacheImage>.singleton.Load(string.Empty, this.m_uiBehaviour.m_txtAvatar, this.m_uiBehaviour);
			}
			this.SetHeadIcon();
		}

		// Token: 0x06010BE6 RID: 68582 RVA: 0x0042F864 File Offset: 0x0042DA64
		public void SetHeadIcon()
		{
			XPrerogativeDocument specificDocument = XDocuments.GetSpecificDocument<XPrerogativeDocument>(XPrerogativeDocument.uuID);
			XSingleton<UiUtility>.singleton.ParseHeadIcon(specificDocument.PlayerSetid, base.uiBehaviour.m_sprFrame);
		}

		// Token: 0x06010BE7 RID: 68583 RVA: 0x0042F89C File Offset: 0x0042DA9C
		public void SetVip()
		{
			XRechargeDocument specificDocument = XDocuments.GetSpecificDocument<XRechargeDocument>(XRechargeDocument.uuID);
		}

		// Token: 0x06010BE8 RID: 68584 RVA: 0x0042F8B5 File Offset: 0x0042DAB5
		public void SetLevel(uint lv)
		{
			base.uiBehaviour.m_Level.SetText(lv.ToString());
		}

		// Token: 0x06010BE9 RID: 68585 RVA: 0x0042F8D0 File Offset: 0x0042DAD0
		private void RefreshPing()
		{
			XSingleton<UiUtility>.singleton.RefreshPing(base.uiBehaviour.m_lblTime, base.uiBehaviour.m_sliderBattery, base.uiBehaviour.m_lblFree);
		}

		// Token: 0x06010BEA RID: 68586 RVA: 0x000FEEFC File Offset: 0x000FD0FC
		public void SetName(string name)
		{
		}

		// Token: 0x06010BEB RID: 68587 RVA: 0x0042F900 File Offset: 0x0042DB00
		public void SetPowerpoint(int value)
		{
			IXUILabel ixuilabel = base.uiBehaviour.m_PlayerPPT.transform.Find("Power").GetComponent("XUILabel") as IXUILabel;
			this._curPPT = value;
			ixuilabel.SetText(value.ToString());
			DlgBase<PPTDlg, PPTBehaviour>.singleton.ShowPPT(value);
		}

		// Token: 0x06010BEC RID: 68588 RVA: 0x000FEEFC File Offset: 0x000FD0FC
		public void OnPowerpointChanged(int oldValue, int newValue)
		{
		}

		// Token: 0x06010BED RID: 68589 RVA: 0x000FEEFC File Offset: 0x000FD0FC
		public void SetExp(XPlayerAttributes attr)
		{
		}

		// Token: 0x06010BEE RID: 68590 RVA: 0x0042F95C File Offset: 0x0042DB5C
		public void RefreshFatigeTime(object obj)
		{
			uint timeLeft = DlgBase<XPurchaseView, XPurchaseBehaviour>.singleton.GetTimeLeft(ItemEnum.FATIGUE);
			ulong virtualItemCount = XSingleton<XGame>.singleton.Doc.XBagDoc.GetVirtualItemCount(ItemEnum.FATIGUE);
			ulong num = ulong.Parse(XSingleton<XGlobalConfig>.singleton.GetValue("MaxRecoverFatigue"));
			base.uiBehaviour.m_CurFatige.SetText(string.Format("{0}/{1}", virtualItemCount, num));
			if (virtualItemCount >= num)
			{
				base.uiBehaviour.m_CoverOneTime.SetText("00:00");
				base.uiBehaviour.m_AllCoverTime.SetText("00:00");
				if (this._fatigeRefreshToken > 0U)
				{
					XSingleton<XTimerMgr>.singleton.KillTimer(this._fatigeRefreshToken);
					this._fatigeRefreshToken = 0U;
				}
			}
			else
			{
				base.uiBehaviour.m_CoverOneTime.SetText(DlgBase<XPurchaseView, XPurchaseBehaviour>.singleton.FormatTime(timeLeft));
				uint time = (uint)((ulong)timeLeft + (num - virtualItemCount) * 360UL);
				base.uiBehaviour.m_AllCoverTime.SetText(DlgBase<XPurchaseView, XPurchaseBehaviour>.singleton.FormatTime(time));
				this._fatigeRefreshToken = XSingleton<XTimerMgr>.singleton.SetTimer(1f, this._refreshFatigeTimeCb, null);
			}
		}

		// Token: 0x06010BEF RID: 68591 RVA: 0x0042FA93 File Offset: 0x0042DC93
		public void ShowFatigeRecoverTime(object obj)
		{
			base.uiBehaviour.m_RecoverTime.SetVisible(true);
			this.RefreshFatigeTime(null);
		}

		// Token: 0x06010BF0 RID: 68592 RVA: 0x0042FAB0 File Offset: 0x0042DCB0
		private void OnPressAddFatige(IXUIButton sp, bool state)
		{
			if (state)
			{
				this._fatigePressTime = DateTime.Now;
				this._pressToken = XSingleton<XTimerMgr>.singleton.SetTimer(0.3f, this._showFatigeRecoverTimeCb, null);
			}
			else
			{
				if (!base.uiBehaviour.m_RecoverTime.IsVisible())
				{
					DlgBase<XPurchaseView, XPurchaseBehaviour>.singleton.ShowBorad(ItemEnum.FATIGUE);
				}
				else
				{
					base.uiBehaviour.m_RecoverTime.SetVisible(false);
				}
				if (this._pressToken > 0U)
				{
					XSingleton<XTimerMgr>.singleton.KillTimer(this._pressToken);
					this._pressToken = 0U;
				}
				if (this._fatigeRefreshToken > 0U)
				{
					XSingleton<XTimerMgr>.singleton.KillTimer(this._fatigeRefreshToken);
					this._fatigeRefreshToken = 0U;
				}
			}
		}

		// Token: 0x06010BF1 RID: 68593 RVA: 0x0042FB7C File Offset: 0x0042DD7C
		public void ForceOpenSysIcons(XSysDefine sys)
		{
			this.SetGridAnimateSmooth(false);
			if (!this._bH1Opened)
			{
				this._bH1Opened = true;
				this.OnMainSysChange();
			}
		}

		// Token: 0x06010BF2 RID: 68594 RVA: 0x0042FBAF File Offset: 0x0042DDAF
		public void OnSysChange(XSysDefine sys)
		{
			this.OnMainSysChange();
		}

		// Token: 0x06010BF3 RID: 68595 RVA: 0x0042FBBC File Offset: 0x0042DDBC
		private void OnAvatarClick(IXUISprite go)
		{
			if (base.IsLoaded())
			{
				bool flag2 = DlgBase<DemoUI, DemoUIBehaviour>.singleton.IsVisible();
				DlgBase<DemoUI, DemoUIBehaviour>.singleton.SetVisible(!flag2, true);
				if (XSingleton<XScene>.singleton.SceneType != SceneType.SCENE_BIGMELEE_READY)
				{
					DlgBase<XOptionsView, XOptionsBehaviour>.singleton.SetVisibleWithAnimation(true, null);
				}
			}
		}

		// Token: 0x06010BF4 RID: 68596 RVA: 0x0042FC1C File Offset: 0x0042DE1C
		private bool _CanClick()
		{
			float time = Time.time;
			if (time - this.m_fClickTime > 3f)
			{
				this.m_fClickTime = time;
				return true;
			}
			return false;
		}

		// Token: 0x06010BF5 RID: 68597 RVA: 0x0042FC54 File Offset: 0x0042DE54
		private bool OnExitGuildClick(IXUIButton go)
		{
			if (!base.IsLoaded())
			{
				return true;
			}

			if (!this._CanClick())
			{
				return true;
			}

			XSingleton<XScene>.singleton.ReqLeaveScene();
			if (XSingleton<XScene>.singleton.SceneType == SceneType.SCENE_FAMILYGARDEN)
			{
				HomePlantDocument doc = HomePlantDocument.Doc;
				doc.ClearFarmInfo();
				doc.HomeSprite.ClearInfo();
				doc.GardenId = 0UL;
			}

			return true;
		}

		// Token: 0x06010BF6 RID: 68598 RVA: 0x0042FCD0 File Offset: 0x0042DED0
		private void ShowCharSysListFrame()
		{
			XPlayerAttributes attr = XSingleton<XEntityMgr>.singleton.Player.Attributes as XPlayerAttributes;
			int num = 28;
			for (int i = 0; i < base.uiBehaviour.m_SysChar.Length; i++)
			{
				bool flag = XSingleton<XGameSysMgr>.singleton.IsSystemOpened(base.uiBehaviour.m_SysChar[i], attr);
				base.uiBehaviour.GetSysButton(base.uiBehaviour.m_SysChar[i]).SetVisible(flag);
				if (flag)
				{
					num += 80;
				}
			}
		}

		// Token: 0x06010BF7 RID: 68599 RVA: 0x0042FD60 File Offset: 0x0042DF60
		private bool TryCheckInGuildSystem(XSysDefine sys)
		{
			if (!base.IsLoaded())
			{
				XSingleton<XDebug>.singleton.AddErrorLog("XMainInterface is Dispose!", null, null, null, null, null);
				return false;
			}

			if (Array.IndexOf<XSysDefine>(base.uiBehaviour.m_SysGuild, sys) == -1)
			{
				return true;
			}

            XGuildDocument specificDocument = XDocuments.GetSpecificDocument<XGuildDocument>(XGuildDocument.uuID);
            if (!specificDocument.bInGuild)
            {
				return false;
            }

            uint unlockLevel = XGuildDocument.GuildConfig.GetUnlockLevel(sys);
            if (specificDocument.Level < unlockLevel)
            {
                XSingleton<UiUtility>.singleton.ShowSystemTip(XStringDefineProxy.GetString("GUILD_MAZE_NO_GUILD_LEVEL", new object[]
                {
                    unlockLevel
                }), "fece00");
                return false;
            }

            if (!XSingleton<XGameSysMgr>.singleton.IsSystemOpened(sys))
            {
                XSingleton<UiUtility>.singleton.ShowSystemTip(XStringDefineProxy.GetString("GUILD_MAZE_NO_PLAYER_LEVEL", new object[]
                {
                    XSingleton<XGameSysMgr>.singleton.GetSystemOpenLevel(sys)
                }), "fece00");
				return false;
            }

			return true;
		}

		// Token: 0x06010BF8 RID: 68600 RVA: 0x0042FE74 File Offset: 0x0042E074
		public void OnSysIconClicked(XSysDefine sys)
		{
			this.OnSysIconClicked(base.uiBehaviour.GetSysButton(sys));
		}

		// Token: 0x06010BF9 RID: 68601 RVA: 0x0042FE8C File Offset: 0x0042E08C
		public bool OnSysIconClicked(IXUIButton go)
		{
			if (!base.IsLoaded())
			{
				return true;
			}

			XSysDefine xsysDefine = (XSysDefine)go.ID;
			if (this.DramaDlgCloseTime > 0f)
			{
				if (Time.time - this.DramaDlgCloseTime < 1f)
				{
					return true;
				}
			}
			if (!this.TryCheckInGuildSystem(xsysDefine))
			{
				return true;
			}

			Dictionary<string, string> dictionary = new Dictionary<string, string>();
			XSysDefine xsysDefine2 = xsysDefine;
			if (xsysDefine2 <= XSysDefine.XSys_OldFriendsBack)
			{
				if (xsysDefine2 <= XSysDefine.XSys_MentorshipMsg_Tip)
				{
					if (xsysDefine2 <= XSysDefine.XSys_WeekEndNest)
					{
						if (xsysDefine2 <= XSysDefine.XSys_Home_MyHome)
						{
							switch (xsysDefine2)
							{
							case XSysDefine.XSys_Character:
								this.ShowCharSysListFrame();
								goto IL_1362;
							case XSysDefine.XSys_Level:
							{
								DlgBase<DungeonSelect, DungeonSelectBehaviour>.singleton.IsTaskMode = false;
								bool flag5 = XSingleton<XScene>.singleton.SceneID != 1U;
								if (flag5)
								{
									DlgBase<DungeonSelect, DungeonSelectBehaviour>.singleton.FadeShow();
								}
								else
								{
									this._TaskNaviHandler.NavigateToBattle();
								}
								goto IL_1362;
							}
							case XSysDefine.XSys_Item:
								DlgBase<ItemSystemDlg, TabDlgBehaviour>.singleton.ShowWorkGameSystem(XSysDefine.XSys_Item);
								goto IL_1362;
							case XSysDefine.XSys_Skill:
								DlgBase<XSkillTreeView, XSkillTreeBehaviour>.singleton.SetVisibleWithAnimation(true, null);
								goto IL_1362;
							case XSysDefine.XSys_Char:
							case XSysDefine.XSys_Fashion:
							case XSysDefine.XSys_Bag:
							case XSysDefine.XSys_TShow:
							case XSysDefine.XSys_Confession:
							case XSysDefine.XSys_TShowRule:
							case XSysDefine.XSys_FlowerRank:
							case XSysDefine.XSys_Camp:
							case XSysDefine.XSys_Design:
							case XSysDefine.XSys_SuperReward:
							case XSysDefine.XSys_Draw:
							case XSysDefine.XSys_Mall:
							case XSysDefine.XSys_Target:
							case (XSysDefine)36:
							case XSysDefine.XSys_ServerActivity:
							case (XSysDefine)38:
							case XSysDefine.XSys_LevelReward:
							case (XSysDefine)43:
							case XSysDefine.XSys_ReceiveEnergy:
							case XSysDefine.XSys_SystemActivity:
							case XSysDefine.XSys_BossRush:
							case XSysDefine.XSys_DragonCrusade:
							case XSysDefine.XSys_Arena:
							case XSysDefine.XSys_Activity:
							case (XSysDefine)53:
							case XSysDefine.XSys_MulActivity:
							case XSysDefine.XSys_PVPAcitivity:
							case XSysDefine.XSys_DragonCoin:
							case (XSysDefine)66:
							case XSysDefine.XSys_WeekShareReward:
							case XSysDefine.XSys_DungeonShareReward:
							case XSysDefine.XSys_Maquee:
							case XSysDefine.XSys_SendFlower:
							case XSysDefine.XSys_Mentorship:
							case XSysDefine.XSys_3GFree:
							case XSysDefine.XSys_ChatGroup:
							case (XSysDefine)79:
							case (XSysDefine)83:
							case (XSysDefine)84:
							case XSysDefine.XSys_GuildRedPacket:
							case XSysDefine.XSys_GayValley:
							case XSysDefine.XSys_GayValleyManager:
								goto IL_133D;
							case XSysDefine.XSys_Horse:
								DlgBase<XPetMainView, XPetMainBehaviour>.singleton.SetVisibleWithAnimation(true, null);
								goto IL_1362;
							case XSysDefine.XSys_Guild:
							{
								XGuildDocument specificDocument = XDocuments.GetSpecificDocument<XGuildDocument>(XGuildDocument.uuID);
								bool flag6 = specificDocument != null;
								if (flag6)
								{
									specificDocument.TryShowGuildHallUI();
								}
								goto IL_1362;
							}
							case XSysDefine.XSys_Recycle:
								DlgBase<RecycleSystemDlg, TabDlgBehaviour>.singleton.ShowWorkGameSystem(XSysDefine.XSys_Recycle);
								goto IL_1362;
							case XSysDefine.XSys_Auction:
								DlgBase<AuctionView, AuctionBehaviour>.singleton.SetVisibleWithAnimation(true, null);
								goto IL_1362;
							case XSysDefine.XSys_CardCollect:
								DlgBase<CardCollectView, CardCollectBehaviour>.singleton.SetVisibleWithAnimation(true, null);
								goto IL_1362;
							case XSysDefine.XSys_Mail:
								DlgBase<MailSystemDlg, TabDlgBehaviour>.singleton.ShowWorkGameSystem(XSysDefine.XSys_Mail_System);
								goto IL_1362;
							case XSysDefine.XSys_Wifi:
								goto IL_1362;
							case XSysDefine.XSys_Strong:
								DlgBase<XFpStrengthenView, XFPStrengthenBehaviour>.singleton.ShowContent(FunctionDef.ZHANLI);
								goto IL_1362;
							case XSysDefine.XSys_Reward:
								DlgBase<RewardSystemDlg, TabDlgBehaviour>.singleton.ShowWorkGameSystem(XSysDefine.XSys_Reward);
								goto IL_1362;
							case XSysDefine.XSys_OnlineReward:
								DlgBase<XOnlineRewardView, XOnlineRewardBehaviour>.singleton.SetVisible(true, true);
								goto IL_1362;
							case XSysDefine.XSys_Setting:
								DlgBase<XOptionsView, XOptionsBehaviour>.singleton.SetVisibleWithAnimation(true, null);
								goto IL_1362;
							case XSysDefine.XSys_Rank:
								DlgBase<XRankView, XRankBehaviour>.singleton.ShowRank(XSysDefine.XSys_Rank);
								goto IL_1362;
							case XSysDefine.XSys_EquipCreate:
								DlgBase<EquipCreateDlg, TabDlgBehaviour>.singleton.ShowWorkGameSystem(XSysDefine.XSys_EquipCreate);
								goto IL_1362;
							case XSysDefine.XSys_LevelSeal:
								DlgBase<XOperatingActivityView, XOperatingActivityBehaviour>.singleton.Show(XSysDefine.XSys_LevelSeal, false);
								goto IL_1362;
							case XSysDefine.XSys_SuperRisk:
								DlgBase<SuperRiskDlg, SuperRiskDlgBehaviour>.singleton.Show(true, 0);
								goto IL_1362;
							case XSysDefine.XSys_Qualifying:
								DlgBase<XQualifyingView, XQualifyingBehaviour>.singleton.SetVisibleWithAnimation(true, null);
								goto IL_1362;
							case XSysDefine.XSys_Spectate:
								DlgBase<SpectateView, SpectateBehaviour>.singleton.SetVisibleWithAnimation(true, null);
								goto IL_1362;
							case XSysDefine.XSys_DailyAcitivity:
								DlgBase<DailyActivityDlg, TabDlgBehaviour>.singleton.ShowWorkGameSystem(XSysDefine.XSys_DailyAcitivity);
								goto IL_1362;
							case XSysDefine.XSys_ExcellentLive:
							{
								XSpectateDocument specificDocument2 = XDocuments.GetSpecificDocument<XSpectateDocument>(XSpectateDocument.uuID);
								specificDocument2.ClickData = specificDocument2.MainInterfaceData;
								specificDocument2.SetMainInterfaceBtnFalse();
								string label = string.Format(XSingleton<UiUtility>.singleton.ReplaceReturn(XStringDefineProxy.GetString("ExcellentLiveTips")), specificDocument2.GetTitle(specificDocument2.ClickData.liveInfo));
								string @string = XStringDefineProxy.GetString("COMMON_OK");
								string string2 = XStringDefineProxy.GetString("COMMON_CANCEL");
								XSingleton<UiUtility>.singleton.ShowModalDialog(label, @string, string2, new ButtonClickEventHandler(this.OnExcellentLiveClick));
								goto IL_1362;
							}
							case XSysDefine.XSys_MobaAcitivity:
								DlgBase<MobaActivityDlg, TabDlgBehaviour>.singleton.ShowWorkGameSystem(XSysDefine.XSys_MobaAcitivity);
								goto IL_1362;
							case XSysDefine.XSys_Money:
								XSingleton<XGameSysMgr>.singleton.OpenSystem(XSysDefine.XSys_Recharge, 0UL);
								goto IL_1362;
							case XSysDefine.XSys_Coin:
							{
								XPurchaseView singleton = DlgBase<XPurchaseView, XPurchaseBehaviour>.singleton;
								singleton.ReqQuickCommonPurchase(ItemEnum.GOLD);
								goto IL_1362;
							}
							case XSysDefine.XSys_Power:
							{
								XPurchaseView singleton2 = DlgBase<XPurchaseView, XPurchaseBehaviour>.singleton;
								singleton2.ReqQuickCommonPurchase(ItemEnum.FATIGUE);
								goto IL_1362;
							}
							case XSysDefine.XSys_GameMall:
								DlgBase<GameMallDlg, TabDlgBehaviour>.singleton.ShowMall(XSysDefine.XSys_GameMall_Dragon, MallType.WEEK, 0UL);
								goto IL_1362;
							case XSysDefine.XSys_Carnival:
								DlgBase<CarnivalDlg, CarnivalBehavior>.singleton.SetVisibleWithAnimation(true, null);
								goto IL_1362;
							case XSysDefine.XSys_OtherPlayerInfo:
								DlgBase<XOtherPlayerInfoView, XOtherPlayerInfoBehaviour>.singleton.SetVisibleWithAnimation(true, null);
								goto IL_1362;
							case XSysDefine.XSys_Chat:
								DlgBase<XChatView, XChatBehaviour>.singleton.SetVisibleWithAnimation(true, null);
								goto IL_1362;
							case XSysDefine.XSys_Friends:
								DlgBase<XFriendsView, XFriendsBehaviour>.singleton.OnShowFriendDlg();
								goto IL_1362;
							case XSysDefine.XSys_PK:
								DlgBase<XPKInvitationView, XPKInvitationBehaviour>.singleton.SetVisibleWithAnimation(true, null);
								goto IL_1362;
							case XSysDefine.XSys_Broadcast:
								this.OnQGameClick(go);
								goto IL_1362;
							case XSysDefine.XSys_GuildHall:
							{
								XGuildDocument specificDocument3 = XDocuments.GetSpecificDocument<XGuildDocument>(XGuildDocument.uuID);
								bool flag7 = !specificDocument3.bInGuild;
								if (flag7)
								{
									XSingleton<UiUtility>.singleton.ShowSystemTip(ErrorCode.ERR_GUILD_NOT_IN_GUILD, "fece00");
								}
								else
								{
									DlgBase<XGuildHallView, XGuildHallBehaviour>.singleton.SetVisibleWithAnimation(true, null);
								}
								goto IL_1362;
							}
							case XSysDefine.XSys_GuildRelax:
								DlgBase<XGuildRelaxGameView, XGuildRelaxGameBehaviour>.singleton.SetVisibleWithAnimation(true, null);
								goto IL_1362;
							case XSysDefine.XSys_GuildDragon:
								break;
							case XSysDefine.XSys_GuildPvp:
								goto IL_A0D;
							case XSysDefine.XSys_GuildMine:
								goto IL_A54;
							case XSysDefine.XSys_CrossGVG:
								DlgBase<CrossGVGMainView, TabDlgBehaviour>.singleton.SetVisibleWithAnimation(true, null);
								goto IL_1362;
							case XSysDefine.XSys_Team:
							{
								DlgBase<XTeamView, TabDlgBehaviour>.singleton.ShowTeamView();
								XTeamDocument specificDocument4 = XDocuments.GetSpecificDocument<XTeamDocument>(XTeamDocument.uuID);
								goto IL_1362;
							}
							case XSysDefine.XSys_SevenActivity:
								DlgBase<SevenLoginDlg, SevenLoginBehaviour>.singleton.SetVisibleWithAnimation(true, null);
								goto IL_1362;
							case XSysDefine.XSys_Title:
								DlgBase<TitleDlg, TitleDlgBehaviour>.singleton.SetVisibleWithAnimation(true, null);
								goto IL_1362;
							default:
								switch (xsysDefine2)
								{
								case XSysDefine.XSys_Home:
								case XSysDefine.XSys_Home_Cooking:
								case XSysDefine.XSys_Home_Fishing:
								case XSysDefine.XSys_Home_Feast:
								case XSysDefine.XSys_Home_MyHome:
									DlgBase<HomeMainDlg, TabDlgBehaviour>.singleton.ShowWorkGameSystem(xsysDefine);
									goto IL_1362;
								case XSysDefine.XSys_Home_Plant:
									DlgBase<HomeMainDlg, TabDlgBehaviour>.singleton.ShowWorkGameSystem(XSysDefine.XSys_Home);
									goto IL_1362;
								default:
									goto IL_133D;
								}
								break;
							}
						}
						else
						{
							if (xsysDefine2 == XSysDefine.XSys_Pet_Pairs)
							{
								DlgBase<PairsPetInviteView, PairsPetInviteBehaviour>.singleton.SetVisible(true, true);
								goto IL_1362;
							}
							if (xsysDefine2 != XSysDefine.XSys_WeekEndNest)
							{
								goto IL_133D;
							}
							DlgBase<WeekEndNestDlg, WeekEndNestBehaviour>.singleton.SetVisible(true, true);
							goto IL_1362;
						}
					}
					else if (xsysDefine2 <= XSysDefine.XSys_Rank_WorldBoss)
					{
						if (xsysDefine2 == XSysDefine.XSys_Mall_Home)
						{
							DlgBase<MallSystemDlg, MallSystemBehaviour>.singleton.ShowShopSystem(xsysDefine, 0UL);
							goto IL_1362;
						}
						if (xsysDefine2 != XSysDefine.XSys_Rank_WorldBoss)
						{
							goto IL_133D;
						}
						DlgBase<XRankView, XRankBehaviour>.singleton.ShowRank(XSysDefine.XSys_Rank_WorldBoss);
						XWorldBossDocument specificDocument5 = XDocuments.GetSpecificDocument<XWorldBossDocument>(XWorldBossDocument.uuID);
						specificDocument5.SetMainInterfaceBtnState(false);
						goto IL_1362;
					}
					else
					{
						if (xsysDefine2 == XSysDefine.XSys_LevelSeal_Tip)
						{
							XLevelSealDocument specificDocument6 = XDocuments.GetSpecificDocument<XLevelSealDocument>(XLevelSealDocument.uuID);
							specificDocument6.ReqLevelSealButtonClick();
							goto IL_1362;
						}
						if (xsysDefine2 != XSysDefine.XSys_MentorshipMsg_Tip)
						{
							goto IL_133D;
						}
						DlgBase<XMentorshipApplicationsView, XMentorshipApplicationBehavior>.singleton.SetVisibleWithAnimation(true, null);
						goto IL_1362;
					}
				}
				else if (xsysDefine2 <= XSysDefine.XSys_Welfare_FirstRechange)
				{
					if (xsysDefine2 <= XSysDefine.XSys_Battlefield)
					{
						if (xsysDefine2 == XSysDefine.XSys_Activity_WorldBoss)
						{
							DlgBase<XWorldBossView, XWorldBossBehaviour>.singleton.ShowView();
							goto IL_1362;
						}
						switch (xsysDefine2)
						{
						case XSysDefine.XSys_Activity_CaptainPVP:
						{
							XCaptainPVPDocument specificDocument7 = XDocuments.GetSpecificDocument<XCaptainPVPDocument>(XCaptainPVPDocument.uuID);
							specificDocument7.SetMainInterfaceBtnState(false);
							string label2 = XSingleton<UiUtility>.singleton.ReplaceReturn(XStringDefineProxy.GetString("MainInterfaceCaptainPVPTips"));
							string string3 = XStringDefineProxy.GetString("BtnTips_EnterNow");
							string string4 = XStringDefineProxy.GetString("BtnTips_Then");
							XSingleton<UiUtility>.singleton.ShowModalDialog(label2, string3, string4, new ButtonClickEventHandler(this.OnCaptainJoin));
							goto IL_1362;
						}
						case XSysDefine.XSys_Activity_GoddessTrial:
						case XSysDefine.XSys_Activity_TeamTowerSingle:
							goto IL_133D;
						case XSysDefine.XSys_BigMelee:
							DlgBase<BigMeleeEntranceView, BigMeleeEntranceBehaviour>.singleton.SetVisibleWithAnimation(true, null);
							goto IL_1362;
						case XSysDefine.XSys_BigMeleeEnd:
						{
							XBigMeleeEntranceDocument specificDocument8 = XDocuments.GetSpecificDocument<XBigMeleeEntranceDocument>(XBigMeleeEntranceDocument.uuID);
							DlgHandlerBase.EnsureCreate<BigMeleeRankHandler>(ref specificDocument8.RankHandler, base.uiBehaviour.m_Canvas, true, null);
							specificDocument8.RankHandler.SetType(false);
							specificDocument8.MainInterfaceStateEnd = false;
							this.RefreshH5ButtonState(XSysDefine.XSys_BigMeleeEnd, true);
							goto IL_1362;
						}
						case XSysDefine.XSys_Battlefield:
							DlgBase<BattleFieldEntranceView, BattleFieldEntranceBehaviour>.singleton.SetVisibleWithAnimation(true, null);
							XBattleFieldEntranceDocument.Doc.SetMainInterfaceBtnState(false);
							goto IL_1362;
						default:
							goto IL_133D;
						}
					}
					else
					{
						switch (xsysDefine2)
						{
						case XSysDefine.XSys_MulActivity_SkyArena:
							XSingleton<XGameSysMgr>.singleton.OpenSystem(XSysDefine.XSys_MulActivity_SkyArena, 0UL);
							goto IL_1362;
						case XSysDefine.XSys_MulActivity_Race:
							XSingleton<XGameSysMgr>.singleton.OpenSystem(XSysDefine.XSys_MulActivity_Race, 0UL);
							goto IL_1362;
						case XSysDefine.XSys_MulActivity_WeekendParty:
							DlgBase<ActivityWeekendPartyView, ActivityWeekendPartyBehaviour>.singleton.SetVisibleWithAnimation(true, null);
							goto IL_1362;
						case XSysDefine.XSys_MulActivity_SkyArenaEnd:
						{
							DlgBase<XRankView, XRankBehaviour>.singleton.ShowRank(XSysDefine.XSys_Rank_SkyArena);
							PtcC2M_MulActivityIconSysReq ptcC2M_MulActivityIconSysReq = new PtcC2M_MulActivityIconSysReq();
							ptcC2M_MulActivityIconSysReq.Data.id = (uint)XFastEnumIntEqualityComparer<XSysDefine>.ToInt(XSysDefine.XSys_MulActivity_SkyArenaEnd);
							XSingleton<XClientNetwork>.singleton.Send(ptcC2M_MulActivityIconSysReq);
							XSkyArenaEntranceDocument.Doc.MainInterfaceStateEnd = false;
							this.RefreshH5ButtonState(XSysDefine.XSys_MulActivity_SkyArenaEnd, true);
							goto IL_1362;
						}
						case (XSysDefine)556:
						case (XSysDefine)557:
						case (XSysDefine)558:
						case (XSysDefine)559:
							goto IL_133D;
						case XSysDefine.XSys_Welfare:
							DlgBase<XWelfareView, XWelfareBehaviour>.singleton.Show(XSysDefine.XSys_None);
							goto IL_1362;
						default:
							if (xsysDefine2 != XSysDefine.XSys_Welfare_FirstRechange)
							{
								goto IL_133D;
							}
							DlgBase<XWelfareView, XWelfareBehaviour>.singleton.Show(XSysDefine.XSys_Welfare_FirstRechange);
							goto IL_1362;
						}
					}
				}
				else if (xsysDefine2 <= XSysDefine.Xsys_Backflow)
				{
					if (xsysDefine2 == XSysDefine.XSys_Welfare_NiceGirl)
					{
						DlgBase<XWelfareView, XWelfareBehaviour>.singleton.Show(XSysDefine.XSys_Welfare_NiceGirl);
						goto IL_1362;
					}
					if (xsysDefine2 != XSysDefine.Xsys_Backflow)
					{
						goto IL_133D;
					}
					DlgBase<XBackFlowDlg, XBackFlowBehavior>.singleton.SetVisible(true, true);
					goto IL_1362;
				}
				else
				{
					if (xsysDefine2 == XSysDefine.Xsys_TaJieHelp)
					{
						DlgBase<TaJieHelpDlg, TaJieHelpBehaviour>.singleton.SetVisible(true, true);
						goto IL_1362;
					}
					if (xsysDefine2 == XSysDefine.XSys_OperatingActivity)
					{
						DlgBase<XOperatingActivityView, XOperatingActivityBehaviour>.singleton.Show(XSysDefine.XSys_None, false);
						goto IL_1362;
					}
					if (xsysDefine2 != XSysDefine.XSys_OldFriendsBack)
					{
						goto IL_133D;
					}
					DlgBase<XOperatingActivityView, XOperatingActivityBehaviour>.singleton.Show(XSysDefine.XSys_OldFriendsBack, false);
					goto IL_1362;
				}
			}
			else if (xsysDefine2 <= XSysDefine.XSys_GuildMineMain)
			{
				if (xsysDefine2 <= XSysDefine.XSys_GuildRelax_VoiceQA)
				{
					if (xsysDefine2 <= XSysDefine.XSys_GroupRecruitAuthorize)
					{
						if (xsysDefine2 == XSysDefine.XSys_NPCFavor)
						{
							XSingleton<XGameSysMgr>.singleton.OpenSystem(XSysDefine.XSys_NPCFavor, 0UL);
							goto IL_1362;
						}
						if (xsysDefine2 != XSysDefine.XSys_GroupRecruitAuthorize)
						{
							goto IL_133D;
						}
						DlgBase<RecruitAuthorizeView, RecruitAuthorizeBehaviour>.singleton.SetVisibleWithAnimation(true, null);
						goto IL_1362;
					}
					else
					{
						if (xsysDefine2 == XSysDefine.XSys_ThemeActivity)
						{
							DlgBase<XThemeActivityView, XThemeActivityBehaviour>.singleton.SetVisibleWithAnimation(true, null);
							goto IL_1362;
						}
						if (xsysDefine2 != XSysDefine.XSys_GuildRelax_VoiceQA)
						{
							goto IL_133D;
						}
						XVoiceQADocument specificDocument9 = XDocuments.GetSpecificDocument<XVoiceQADocument>(XVoiceQADocument.uuID);
						bool isVoiceQAIng = specificDocument9.IsVoiceQAIng;
						if (isVoiceQAIng)
						{
							DlgBase<XVoiceQAView, XVoiceQABehaviour>.singleton.SetVisible(true, true);
						}
						else
						{
							string label3 = XSingleton<UiUtility>.singleton.ReplaceReturn(XStringDefineProxy.GetString("VoiceQA_Enter_Description_" + specificDocument9.TempType.ToString()));
							string string5 = XStringDefineProxy.GetString("VoiceQA_Enter_btn1");
							string string6 = XStringDefineProxy.GetString("VoiceQA_Enter_btn2");
							XSingleton<UiUtility>.singleton.ShowModalDialog(label3, string5, string6, new ButtonClickEventHandler(this.OnVoiceQAJoin), new ButtonClickEventHandler(this.OnVoiceQARefuse), false, XTempTipDefine.OD_START, 50);
						}
						goto IL_1362;
					}
				}
				else if (xsysDefine2 <= XSysDefine.XSys_GuildBoon_RedPacket)
				{
					if (xsysDefine2 == XSysDefine.XSys_GuildRelax_JokerMatch)
					{
						XGuildJockerMatchDocument specificDocument10 = XDocuments.GetSpecificDocument<XGuildJockerMatchDocument>(XGuildJockerMatchDocument.uuID);
						specificDocument10.SendReqJokerMatchJoin();
						goto IL_1362;
					}
					if (xsysDefine2 != XSysDefine.XSys_GuildBoon_RedPacket)
					{
						goto IL_133D;
					}
					XGuildRedPacketDocument specificDocument11 = XDocuments.GetSpecificDocument<XGuildRedPacketDocument>(XGuildRedPacketDocument.uuID);
					specificDocument11.ReqGetLast();
					goto IL_1362;
				}
				else
				{
					if (xsysDefine2 == XSysDefine.XSys_GuildChallenge)
					{
						goto IL_1362;
					}
					if (xsysDefine2 == XSysDefine.XSys_GuildQualifier)
					{
						XGuildDocument specificDocument12 = XDocuments.GetSpecificDocument<XGuildDocument>(XGuildDocument.uuID);
						bool flag8 = !specificDocument12.bInGuild;
						if (flag8)
						{
							XSingleton<UiUtility>.singleton.ShowSystemTip(ErrorCode.ERR_GUILD_NOT_IN_GUILD, "fece00");
						}
						else
						{
							DlgBase<GuildQualifierDlg, GuildQualifierBehavior>.singleton.SetVisibleWithAnimation(true, null);
						}
						goto IL_1362;
					}
					if (xsysDefine2 != XSysDefine.XSys_GuildMineMain)
					{
						goto IL_133D;
					}
					DlgBase<GuildMineMainView, GuildMineMainBehaviour>.singleton.SetVisibleWithAnimation(true, null);
					goto IL_1362;
				}
			}
			else if (xsysDefine2 <= XSysDefine.XSys_IDIP_ZeroReward)
			{
				if (xsysDefine2 <= XSysDefine.XSys_GuildInherit)
				{
					if (xsysDefine2 == XSysDefine.XSys_GuildDailyTask)
					{
						DlgBase<XGuildDailyTaskView, XGuildDailyTaskBehavior>.singleton.SetVisible(true, true);
						goto IL_1362;
					}
					if (xsysDefine2 != XSysDefine.XSys_GuildInherit)
					{
						goto IL_133D;
					}
					DlgBase<GuildInheritDlg, GuildInheritBehaviour>.singleton.SetVisibleWithAnimation(true, null);
					goto IL_1362;
				}
				else
				{
					switch (xsysDefine2)
					{
					case XSysDefine.XSys_JockerKing:
					{
						XJokerKingDocument specificDocument13 = XDocuments.GetSpecificDocument<XJokerKingDocument>(XJokerKingDocument.uuID);
						specificDocument13.JokerKingMatchAdd();
						goto IL_1362;
					}
					case XSysDefine.XSys_Team_TeamList:
					case XSysDefine.XSys_Team_MyTeam:
					case XSysDefine.XSys_GuildWeeklyBountyTask:
						goto IL_133D;
					case XSysDefine.XSys_Team_Invited:
						DlgBase<XTeamInvitedListView, XTeamInvitedListBehaviour>.singleton.SetVisibleWithAnimation(true, null);
						goto IL_1362;
					case XSysDefine.XSys_GuildDailyRefresh:
						DlgBase<XGuildDailyRefreshTaskDlg, XGuildDailyRefreshTaskBehavior>.singleton.SetVisible(true, true);
						goto IL_1362;
					case XSysDefine.XSys_GuildDailyRequest:
						DlgBase<XGuildDailyHandleRefreshDlg, XGuildDailyHandleRefreshBehavior>.singleton.SetVisible(true, true);
						goto IL_1362;
					default:
					{
						if (xsysDefine2 != XSysDefine.XSys_IDIP_ZeroReward)
						{
							goto IL_133D;
						}
						XIDIPDocument specificDocument14 = XDocuments.GetSpecificDocument<XIDIPDocument>(XIDIPDocument.uuID);
						string leftTimeString = specificDocument14.GetLeftTimeString();
						bool flag9 = leftTimeString == "0";
						if (flag9)
						{
							specificDocument14.ZeroRewardBtnState = false;
							this.RefreshH5ButtonState(XSysDefine.XSys_IDIP_ZeroReward, true);
						}
						else
						{
							string label4 = string.Format(XStringDefineProxy.GetString("IDIP_TIPS_ZEROREWARDClick"), leftTimeString);
							XSingleton<UiUtility>.singleton.ShowModalDialog(label4, XStringDefineProxy.GetString("COMMON_OK"));
						}
						goto IL_1362;
					}
					}
				}
			}
			else if (xsysDefine2 <= XSysDefine.XSys_SpriteSystem)
			{
				if (xsysDefine2 == XSysDefine.XSys_Photo)
				{
					XDanceDocument.Doc.GetAllDanceIDs();
					this.RefreshV3BtnSelect(go);
					DlgBase<ScreenShotShareView, ScreenShotShareBehaviour>.singleton.SetVisible(true, true);
					DlgBase<ScreenShotShareView, ScreenShotShareBehaviour>.singleton.ShowMainView();
					goto IL_1362;
				}
				if (xsysDefine2 != XSysDefine.XSys_SpriteSystem)
				{
					goto IL_133D;
				}
				DlgBase<SpriteSystemDlg, TabDlgBehaviour>.singleton.ShowWorkGameSystem(XSysDefine.XSys_SpriteSystem_Main);
				goto IL_1362;
			}
			else
			{
				switch (xsysDefine2)
				{
				case XSysDefine.XSys_QuickRide:
				{
					this.RefreshV3BtnSelect(go);
					XPetDocument specificDocument15 = XDocuments.GetSpecificDocument<XPetDocument>(XPetDocument.uuID);
					if (XSingleton<XAttributeMgr>.singleton.XPlayerData.Outlook.state.type == OutLookStateType.OutLook_RidePetCopilot)
					{
						specificDocument15.OnReqOffPetPairRide();
					}
					else
					{
						if (specificDocument15.Pets.Count == 0)
						{
							XSingleton<UiUtility>.singleton.ShowSystemTip(XStringDefineProxy.GetString("PET_NONE"), "fece00");
						}
						else
						{
							specificDocument15.ReqRecentMount();
						}
					}
					goto IL_1362;
				}
				case XSysDefine.XSys_AppStore_Praise:
				case (XSysDefine)946:
				case (XSysDefine)947:
				case (XSysDefine)948:
				case XSysDefine.XSys_WebView:
				case XSysDefine.XSys_GameHorde:
				case (XSysDefine)955:
				case XSysDefine.XSys_ProfessionChange:
				case XSysDefine.XSys_Questionnaire:
				case (XSysDefine)964:
				case (XSysDefine)965:
				case (XSysDefine)966:
				case (XSysDefine)967:
				case (XSysDefine)968:
				case (XSysDefine)969:
					goto IL_133D;
				case XSysDefine.XSys_Transform:
				{
					XTransformDocument specificDocument16 = XDocuments.GetSpecificDocument<XTransformDocument>(XTransformDocument.uuID);
					specificDocument16.ReqSwitch();
					goto IL_1362;
				}
				case XSysDefine.XSys_GameCommunity:
				{
					if (this._GameCommunityHandler == null)
					{
						this._GameCommunityHandler = DlgHandlerBase.EnsureCreate<GameCommunityHandler>(ref this._GameCommunityHandler, base.uiBehaviour.m_SecondMenu.transform, true, this);
					}
					else
					{
						this._GameCommunityHandler.SetVisible(!this._GameCommunityHandler.IsVisible());
					}
					goto IL_1362;
				}
				case XSysDefine.XSys_FriendCircle:
					dictionary["link"] = XSingleton<XGlobalConfig>.singleton.GetValue("FriendsCircleUrl");
					XSingleton<XUpdater.XUpdater>.singleton.XPlatform.SendExtDara("open_wx_deeplink", Json.Serialize(dictionary));
					goto IL_1362;
				case XSysDefine.XSys_QQVIP:
					XPlatformAbilityDocument.Doc.ClickRedPointNtf();
					XPlatformAbilityDocument.Doc.OpenQQVipRechargeH5();
					goto IL_1362;
				case XSysDefine.XSys_SystemAnnounce:
					DlgBase<AnnounceView, AnnounceBehaviour>.singleton.SetVisible(true, true);
					goto IL_1362;
				case XSysDefine.XSys_HeroBattle:
				{
					XHeroBattleDocument specificDocument17 = XDocuments.GetSpecificDocument<XHeroBattleDocument>(XHeroBattleDocument.uuID);
					specificDocument17.MaininterfaceState = false;
					this.RefreshH5ButtonState(XSysDefine.XSys_HeroBattle, true);
					string label5 = XSingleton<UiUtility>.singleton.ReplaceReturn(XStringDefineProxy.GetString("MainInterfaceHeroBattlePVPTips"));
					string string7 = XStringDefineProxy.GetString("BtnTips_EnterNow");
					string string8 = XStringDefineProxy.GetString("BtnTips_Then");
					XSingleton<UiUtility>.singleton.ShowModalDialog(label5, string7, string8, new ButtonClickEventHandler(this.OnHeroBattleJoin));
					goto IL_1362;
				}
				case XSysDefine.XSys_GuildBossMainInterface:
					break;
				case XSysDefine.XSys_GuildMineMainInterface:
					goto IL_A54;
				case XSysDefine.XSys_GuildPvpMainInterface:
					goto IL_A0D;
				case XSysDefine.XSys_TeamLeague:
				{
					XFreeTeamVersusLeagueDocument specificDocument18 = XDocuments.GetSpecificDocument<XFreeTeamVersusLeagueDocument>(XFreeTeamVersusLeagueDocument.uuID);
					specificDocument18.SetMainInterfaceBtnState(false);
					string label6 = XSingleton<UiUtility>.singleton.ReplaceReturn(XStringDefineProxy.GetString("MainInterfaceTeamLeagueTips"));
					string string9 = XStringDefineProxy.GetString("BtnTips_EnterNow");
					string string10 = XStringDefineProxy.GetString("BtnTips_Then");
					XSingleton<UiUtility>.singleton.ShowModalDialog(label6, string9, string10, new ButtonClickEventHandler(this.OnTeamLeagueJoin));
					goto IL_1362;
				}
				case XSysDefine.XSys_GuildMineEnd:
				{
					RpcC2M_QueryResWar rpcC2M_QueryResWar = new RpcC2M_QueryResWar();
					rpcC2M_QueryResWar.oArg.param = QueryResWarEnum.RESWAR_FLOWAWARD;
					XSingleton<XClientNetwork>.singleton.Send(rpcC2M_QueryResWar);
					XGuildMineEntranceDocument specificDocument19 = XDocuments.GetSpecificDocument<XGuildMineEntranceDocument>(XGuildMineEntranceDocument.uuID);
					specificDocument19.MainInterfaceStateEnd = false;
					this.RefreshH5ButtonState(XSysDefine.XSys_GuildMineEnd, true);
					goto IL_1362;
				}
				case XSysDefine.XSys_GuildTerritory:
					DlgBase<GuildTerritoryMainDlg, GuildTerritoryMainBehaviour>.singleton.SetVisibleWithAnimation(true, null);
					goto IL_1362;
				case XSysDefine.XSys_GuildTerritoryIconInterface:
				{
					XGuildTerritoryDocument specificDocument20 = XDocuments.GetSpecificDocument<XGuildTerritoryDocument>(XGuildTerritoryDocument.uuID);
					specificDocument20.OnClickTerritoryIcon();
					goto IL_1362;
				}
				case XSysDefine.XSys_GuildTerritoryAllianceInterface:
					DlgBase<GuildTerritoryLeagueDlg, GuildTerritoryLeagueBehaviour>.singleton.SetVisibleWithAnimation(true, null);
					goto IL_1362;
				case XSysDefine.XSys_GuildTerritoryMessageInterface:
				{
					DlgBase<GuildTerritoryMessageDlg, GuildTerritoryMessageBehaviour>.singleton.SetVisibleWithAnimation(true, null);
					XGuildTerritoryDocument specificDocument21 = XDocuments.GetSpecificDocument<XGuildTerritoryDocument>(XGuildTerritoryDocument.uuID);
					specificDocument21.bHavaShowMessageIcon = false;
					goto IL_1362;
				}
				default:
					if (xsysDefine2 == XSysDefine.XSys_Platform_StartPrivilege)
					{
						DlgBase<XQQWXGameCenterPrivilegeView, XQQWXGameCenterPrivilegeBehaviour>.singleton.SetVisibleWithAnimation(true, null);
						goto IL_1362;
					}
					switch (xsysDefine2)
					{
					case XSysDefine.XSys_Exchange:
						DlgBase<RequestDlg, RequestBehaviour>.singleton.SetVisibleWithAnimation(true, null);
						goto IL_1362;
					case XSysDefine.XSys_GuildCollectMainInterface:
					{
						XGuildCollectDocument specificDocument22 = XDocuments.GetSpecificDocument<XGuildCollectDocument>(XGuildCollectDocument.uuID);
						specificDocument22.SetMainInterfaceBtnState(false);
						XGuildDocument specificDocument23 = XDocuments.GetSpecificDocument<XGuildDocument>(XGuildDocument.uuID);
						if (specificDocument23.bInGuild)
						{
							string label7 = XSingleton<UiUtility>.singleton.ReplaceReturn(XStringDefineProxy.GetString("GuildCollectJoinTips1"));
							string string11 = XStringDefineProxy.GetString("BtnTips_EnterNow");
							string string12 = XStringDefineProxy.GetString("BtnTips_Then");
							XSingleton<UiUtility>.singleton.ShowModalDialog(label7, string11, string12, new ButtonClickEventHandler(this.OnJoinGuildBtnClick));
						}
						else
						{
							string label8 = XSingleton<UiUtility>.singleton.ReplaceReturn(XStringDefineProxy.GetString("GuildCollectJoinTips2"));
							string string13 = XStringDefineProxy.GetString("BtnTips_EnterGuild");
							string string14 = XStringDefineProxy.GetString("BtnTips_Then");
							XSingleton<UiUtility>.singleton.ShowModalDialog(label8, string13, string14, new ButtonClickEventHandler(this.OnJoinGuildBtnClick));
						}
						goto IL_1362;
					}
					case XSysDefine.XSys_GuildCollect:
						DlgBase<GuildCollectRewardDlg, GuildCollectRewardBehaviour>.singleton.SetVisibleWithAnimation(true, null);
						goto IL_1362;
					case XSysDefine.XSys_BackFlowMall:
					case XSysDefine.XSys_BackFlowWelfare:
					case (XSysDefine)995:
						goto IL_133D;
					case XSysDefine.XSys_GuildCollectSummon:
					{
						XGuildCollectDocument specificDocument24 = XDocuments.GetSpecificDocument<XGuildCollectDocument>(XGuildCollectDocument.uuID);
						specificDocument24.QuerySummon();
						goto IL_1362;
					}
					default:
						goto IL_133D;
					}
					break;
				}
			}
			DlgBase<XGuildDragonView, XGuildDragonBehaviour>.singleton.ShowGuildBossView();
			goto IL_1362;
			IL_A0D:
			DlgBase<XGuildArenaDlg, TabDlgBehaviour>.singleton.SetVisibleWithAnimation(true, null);
			XGuildArenaDocument specificDocument25 = XDocuments.GetSpecificDocument<XGuildArenaDocument>(XGuildArenaDocument.uuID);
			specificDocument25.bHasAvailableArenaIcon = false;
			goto IL_1362;
			IL_A54:
			DlgBase<GuildMineEntranceView, GuildMineEntranceBehaviour>.singleton.SetVisibleWithAnimation(true, null);
			goto IL_1362;
			IL_133D:
			XSingleton<XDebug>.singleton.AddErrorLog("This system hasn't finished: ", xsysDefine.ToString(), null, null, null, null);
			IL_1362:
			return true;
		}

		// Token: 0x06010BFA RID: 68602 RVA: 0x00431200 File Offset: 0x0042F400
		public void SetSystemRedPointState(XSysDefine sys, bool state)
		{
			if (sys == XSysDefine.XSys_GuildDailyTask)
			{
				this._TaskNaviHandler.TaskHandler.RefreshVisibleContents();
			}
			else
			{
				if (sys == XSysDefine.XSys_GuildWeeklyBountyTask)
				{
					this._TaskNaviHandler.TaskHandler.RefreshVisibleContents();
				}
				else
				{
					IXUIButton sysButton = base.uiBehaviour.GetSysButton(sys);
					if (sysButton != null)
					{
						Transform transform = sysButton.gameObject.transform.Find("RedPoint");
						if (transform != null)
						{
							transform.gameObject.SetActive(state);
						}
					}
				}
			}
		}

		// Token: 0x06010BFB RID: 68603 RVA: 0x00431298 File Offset: 0x0042F498
		public void InitRedPointsWhenShow()
		{
			XGameSysMgr singleton = XSingleton<XGameSysMgr>.singleton;
			for (int i = 0; i < base.uiBehaviour.m_SysButtonsMapping.Length; i++)
			{
				if (base.uiBehaviour.m_SysButtonsMapping[i] != null)
				{
					XSysDefine sys = (XSysDefine)i;
					List<XSysDefine> childSys = singleton.GetChildSys(sys);
					for (int j = 0; j < childSys.Count; j++)
					{
						singleton.RecalculateRedPointState(childSys[j], false);
					}
					singleton.UpdateRedPointOnHallUI(sys);
				}
			}
			this.OnGuildSysChange();
		}

		// Token: 0x06010BFC RID: 68604 RVA: 0x0043132C File Offset: 0x0042F52C
		public void InitSevenLoginWhenShow()
		{
			bool flag = base.uiBehaviour == null || base.uiBehaviour.m_SevenLoginMessage == null;
			if (!flag)
			{
				XSevenLoginDocument specificDocument = XDocuments.GetSpecificDocument<XSevenLoginDocument>(XSevenLoginDocument.uuID);
				if (specificDocument.bHasAvailableSevenIcon)
				{
					string empty = string.Empty;
					string empty2 = string.Empty;
					if (specificDocument.TryGetHallMessage(out empty, out empty2))
					{
						base.uiBehaviour.m_SevenLoginMessage.SetText(empty);
						base.uiBehaviour.m_SevenLoginSprite.SetSprite(empty2);
						base.uiBehaviour.m_SevenLoginSprite.MakePixelPerfect();
					}
				}
			}
		}

		// Token: 0x06010BFD RID: 68605 RVA: 0x004313D0 File Offset: 0x0042F5D0
		public void SetMultiActivityTips(object o = null)
		{
			XActivityDocument doc = XActivityDocument.Doc;
			if (base.uiBehaviour.m_MulActTips.IsVisible() && doc.MainInterfaceTips != null && doc.MainInterfaceTips != "")
			{
				base.uiBehaviour.m_MulActTips.SetText(doc.MainInterfaceTips);
				IXUITweenTool ixuitweenTool = base.uiBehaviour.m_MulActTips.gameObject.GetComponent("XUIPlayTween") as IXUITweenTool;
				ixuitweenTool.PlayTween(true, -1f);
			}
			XSingleton<XTimerMgr>.singleton.KillTimer(this.MulActTipsToken);
			this.MulActTipsToken = XSingleton<XTimerMgr>.singleton.SetTimer((float)this._MulActTipsCD, new XTimerMgr.ElapsedEventHandler(this.SetMultiActivityTips), null);
		}

		// Token: 0x06010BFE RID: 68606 RVA: 0x00431490 File Offset: 0x0042F690
		public void OnVoiceBtnAppear(uint textType)
		{
			XVoiceQADocument specificDocument = XDocuments.GetSpecificDocument<XVoiceQADocument>(XVoiceQADocument.uuID);
			specificDocument.MainInterFaceBtnState = true;
			this.RefreshH5ButtonState(XSysDefine.XSys_GuildRelax_VoiceQA, true);
		}

		// Token: 0x06010BFF RID: 68607 RVA: 0x004314C0 File Offset: 0x0042F6C0
		public bool OnVoiceQAJoin(IXUIButton btn)
		{
			XVoiceQADocument specificDocument = XDocuments.GetSpecificDocument<XVoiceQADocument>(XVoiceQADocument.uuID);
			specificDocument.VoiceQAJoinChoose(true, specificDocument.TempType);
			DlgBase<ModalDlg, ModalDlgBehaviour>.singleton.SetVisible(false, true);
			return true;
		}

		// Token: 0x06010C00 RID: 68608 RVA: 0x004314FC File Offset: 0x0042F6FC
		public bool OnVoiceQARefuse(IXUIButton btn)
		{
			XVoiceQADocument specificDocument = XDocuments.GetSpecificDocument<XVoiceQADocument>(XVoiceQADocument.uuID);
			specificDocument.VoiceQAJoinChoose(false, specificDocument.TempType);
			DlgBase<ModalDlg, ModalDlgBehaviour>.singleton.SetVisible(false, true);
			return true;
		}

		// Token: 0x06010C01 RID: 68609 RVA: 0x00431538 File Offset: 0x0042F738
		private bool OnCaptainJoin(IXUIButton btn)
		{
			XSingleton<XGameSysMgr>.singleton.OpenSystem(XSysDefine.XSys_Activity_CaptainPVP, 0UL);
			DlgBase<ModalDlg, ModalDlgBehaviour>.singleton.SetVisible(false, true);
			return true;
		}

		// Token: 0x06010C02 RID: 68610 RVA: 0x0043156C File Offset: 0x0042F76C
		private bool OnTeamLeagueJoin(IXUIButton btn)
		{
			LeagueBattleTimeState todayState = XFreeTeamVersusLeagueDocument.Doc.TodayState;
			if (todayState == LeagueBattleTimeState.LBTS_CrossElimination || todayState == LeagueBattleTimeState.LBTS_Elimination)
			{
				DlgBase<XTeamLeagueFinalResultView, XTeamLeagueFinalResultBehavior>.singleton.SetVisibleWithAnimation(true, null);
			}
			else
			{
				DlgBase<XFreeTeamLeagueMainView, XFreeTeamLeagueMainBehavior>.singleton.SetVisibleWithAnimation(true, null);
			}
			DlgBase<ModalDlg, ModalDlgBehaviour>.singleton.SetVisible(false, true);
			return true;
		}

		// Token: 0x06010C03 RID: 68611 RVA: 0x004315C4 File Offset: 0x0042F7C4
		private bool OnHeroBattleJoin(IXUIButton btn)
		{
			XSingleton<XGameSysMgr>.singleton.OpenSystem(XSysDefine.XSys_HeroBattle, 0UL);
			DlgBase<ModalDlg, ModalDlgBehaviour>.singleton.SetVisible(false, true);
			return true;
		}

		// Token: 0x06010C04 RID: 68612 RVA: 0x004315F8 File Offset: 0x0042F7F8
		private bool OnExcellentLiveClick(IXUIButton btn)
		{
			DlgBase<ModalDlg, ModalDlgBehaviour>.singleton.SetVisible(false, true);
			XSpectateDocument specificDocument = XDocuments.GetSpecificDocument<XSpectateDocument>(XSpectateDocument.uuID);
			specificDocument.MainInterfaceEnterQuery();
			return true;
		}

		// Token: 0x06010C05 RID: 68613 RVA: 0x0043162C File Offset: 0x0042F82C
		private bool OnJoinGuildBtnClick(IXUIButton btn)
		{
			DlgBase<ModalDlg, ModalDlgBehaviour>.singleton.SetVisible(false, true);
			XGuildDocument specificDocument = XDocuments.GetSpecificDocument<XGuildDocument>(XGuildDocument.uuID);
			specificDocument.TryEnterGuildScene();
			return true;
		}

		// Token: 0x06010C06 RID: 68614 RVA: 0x00431660 File Offset: 0x0042F860
		public void ShowRemoveSealLeftTime(IXUILabel label, ref XLeftTimeCounter _LevelSealCDCounter, ref bool isLevelSealCountdown)
		{
			XLevelSealDocument specificDocument = XDocuments.GetSpecificDocument<XLevelSealDocument>(XLevelSealDocument.uuID);
			int leftTime = specificDocument.GetLeftTime();
			if (leftTime >= 86400)
			{
				isLevelSealCountdown = false;
				string text = string.Format(XSingleton<XStringTable>.singleton.GetString("SEAL_REMOVE_LEFT"), XSingleton<UiUtility>.singleton.TimeAccFormatString(leftTime, 1, 1));
				label.SetText(text);
			}
			else
			{
				if (leftTime <= 0)
				{
					isLevelSealCountdown = false;
					string text2 = string.Format(XSingleton<XStringTable>.singleton.GetString("SEAL_REMOVE_LEFT"), "00:00");
					label.SetText(text2);
				}
				else
				{
					isLevelSealCountdown = true;
					if (_LevelSealCDCounter == null)
					{
						_LevelSealCDCounter = new XLeftTimeCounter(label, false);
					}
					_LevelSealCDCounter.SetLeftTime((float)leftTime, -1);
					_LevelSealCDCounter.SetFormatString(XSingleton<XStringTable>.singleton.GetString("SEAL_REMOVE_LEFT"));
					_LevelSealCDCounter.SetTimeFormat(2, 3, 3, false);
					_LevelSealCDCounter.SetCarry();
				}
			}
		}

		// Token: 0x06010C07 RID: 68615 RVA: 0x0043174C File Offset: 0x0042F94C
		public void PlayGetPartnerEffect()
		{
			XSingleton<XFxMgr>.singleton.CreateAndPlay("Effects/FX_Particle/UIfx/UI_yh", base.uiBehaviour.transform, Vector3.zero, Vector3.one, 1f, true, 3f, true);
		}

		// Token: 0x06010C08 RID: 68616 RVA: 0x0043178C File Offset: 0x0042F98C
		public void ShowLiveCount(uint count)
		{
			base.uiBehaviour.m_LiveTips.SetActive(count > 0U);
			if (count > 9U)
			{
				base.uiBehaviour.m_LiveCount.SetText("...");
			}
			else
			{
				base.uiBehaviour.m_LiveCount.SetText(count.ToString());
			}
		}

		// Token: 0x06010C09 RID: 68617 RVA: 0x004317E8 File Offset: 0x0042F9E8
		public bool SetSystemAnnounce()
		{
			SystemAnnounce.RowData sysAnnounceData = XSingleton<XGameSysMgr>.singleton.GetSysAnnounceData(XSingleton<XAttributeMgr>.singleton.XPlayerData.Level);
			if (sysAnnounceData == null)
			{
				return false;
			}

            IXUIButton sysButton = base.uiBehaviour.GetSysButton(XSysDefine.XSys_SystemAnnounce);
            IXUILabel ixuilabel = sysButton.gameObject.transform.Find("Level").GetComponent("XUILabel") as IXUILabel;
            ixuilabel.SetText(sysAnnounceData.OpenAnnounceLevel.ToString());
            IXUISprite ixuisprite = sysButton.gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite;
            ixuisprite.spriteName = sysAnnounceData.AnnounceIcon;
            IXUISprite ixuisprite2 = sysButton.gameObject.transform.Find("Name").GetComponent("XUISprite") as IXUISprite;
            ixuisprite2.spriteName = sysAnnounceData.TextSpriteName;
            ixuisprite2.MakePixelPerfect();
            return true;
		}

		// Token: 0x06010C0A RID: 68618 RVA: 0x004318E0 File Offset: 0x0042FAE0
		public void SetGetExpAnimation(ulong exp, Vector3 pos)
		{
			if (Camera.main != null)
			{
				XSingleton<XDebug>.singleton.AddGreenLog("exp:", exp.ToString(), null, null, null, null);
				int curExpInd = this._curExpInd;
				this._curExpInd = (this._curExpInd + 1) % this._maxExpCount;
				Vector3 vector = Camera.main.WorldToScreenPoint(pos);
				Vector3 vector2 = XSingleton<XGameUI>.singleton.UICamera.ScreenToWorldPoint(vector);
				vector2.z = 0f;
				base.uiBehaviour.m_ExpValueMgr[curExpInd].gameObject.transform.InverseTransformPoint(vector2);
				base.uiBehaviour.m_ExpValueMgr[curExpInd].SetText(string.Format("jy+{0}", exp));
				base.uiBehaviour.m_ExpAnimationMgr[curExpInd].PlayTween(true, -1f);
			}
		}

		// Token: 0x06010C0B RID: 68619 RVA: 0x004319C8 File Offset: 0x0042FBC8
		public Vector3 GetSelectDanceMotionBtnPos()
		{
			if (this.lastSelectV3Button != null)
			{
				return this.lastSelectV3Button.gameObject.transform.position;
			}
			return Vector3.zero;
		}

		// Token: 0x06010C0C RID: 68620 RVA: 0x00431A04 File Offset: 0x0042FC04
		private void RefreshV3BtnSelect(IXUIButton newBtn)
		{
			if (this._DanceMotionHandler != null)
			{
				this._DanceMotionHandler.SetVisible(false);
			}
			if (this.lastSelectV3Button != null)
			{
				Transform transform = this.lastSelectV3Button.gameObject.transform.Find("Select");
				if (transform != null)
				{
					transform.gameObject.SetActive(false);
				}
			}
			if (newBtn != null)
			{
				Transform transform2 = newBtn.gameObject.transform.Find("Select");
				if (transform2 != null)
				{
					transform2.gameObject.SetActive(true);
				}
			}
			this.lastSelectV3Button = newBtn;
		}

		// Token: 0x06010C0D RID: 68621 RVA: 0x00431AB4 File Offset: 0x0042FCB4
		private bool OnMotionClicked(IXUIButton btn)
		{
			if (!base.IsLoaded())
			{
				return true;
			}

			bool flag2 = false;
			if (this.lastSelectV3Button != null && this.lastSelectV3Button == btn && this._DanceMotionHandler != null && this._DanceMotionHandler.IsVisible())
			{
				flag2 = true;
			}
			this.RefreshV3BtnSelect(btn);
			if (!flag2 && this._DanceMotionHandler != null)
			{
				this._DanceMotionHandler.SetVisible(true);
				XDanceDocument.Doc.GetDanceIDs((uint)btn.ID);
			}
			return true;
		}

		// Token: 0x06010C0E RID: 68622 RVA: 0x00431B48 File Offset: 0x0042FD48
		public void RefreshMotionPanel(List<DanceMotionData> motions)
		{
			if (this._DanceMotionHandler != null && this._DanceMotionHandler.IsVisible())
			{
				this._DanceMotionHandler.RefreshMotionPanel(motions);
			}
		}

		// Token: 0x06010C0F RID: 68623 RVA: 0x00431B80 File Offset: 0x0042FD80
		private void OnV3SwitchBtnClick(IXUISprite iSp)
		{
			if (base.IsLoaded())
			{
				this._V3SwitchBtnState = !this._V3SwitchBtnState;
				int tweenGroup = this._V3SwitchBtnState ? 1 : 2;
				base.uiBehaviour.m_V3ListTween.SetTweenGroup(tweenGroup);
				base.uiBehaviour.m_V3ListTween.PlayTween(true, -1f);
				base.uiBehaviour.m_V3SwitchTween.SetTweenGroup(tweenGroup);
				base.uiBehaviour.m_V3SwitchTween.PlayTween(true, -1f);
				if (!this._V3SwitchBtnState)
				{
					if (this._DanceMotionHandler != null)
					{
						this._DanceMotionHandler.SetVisible(false);
					}
				}
				else
				{
					XTransformDocument specificDocument = XDocuments.GetSpecificDocument<XTransformDocument>(XTransformDocument.uuID);
					specificDocument.ReqLeftTime();
				}
			}
		}

		// Token: 0x06010C10 RID: 68624 RVA: 0x00431C50 File Offset: 0x0042FE50
		private void OnH2SwitchBtnClick(IXUISprite iSp)
		{
			if (base.IsLoaded())
			{
				this._H2SwitchBtnState = !this._H2SwitchBtnState;
				if (this._H2SwitchBtnState)
				{
					GameObject gameObject = base.uiBehaviour.m_H2SwitchBtn.gameObject.transform.Find("RedPoint").gameObject;
					gameObject.SetActive(false);
				}
				int tweenGroup = this._H2SwitchBtnState ? 1 : 0;
				base.uiBehaviour.m_H2ListTween.SetTweenGroup(tweenGroup);
				base.uiBehaviour.m_H2SwitchTween.SetTweenGroup(tweenGroup);
				base.uiBehaviour.m_H2ListTween.PlayTween(true, -1f);
				base.uiBehaviour.m_H2SwitchTween.PlayTween(true, -1f);
			}
		}

		// Token: 0x06010C11 RID: 68625 RVA: 0x00431D18 File Offset: 0x0042FF18
		public void CalH2SwitchBtnRedPointState(IXUITweenTool o = null)
		{
			if (base.IsLoaded())
			{
				GameObject gameObject = base.uiBehaviour.m_H2SwitchBtn.gameObject.transform.Find("RedPoint").gameObject;
				if (this._H2SwitchBtnState)
				{
					gameObject.SetActive(false);
				}
				else
				{
					gameObject.SetActive(this.CalMenuUIRedPoint(XSysDefine.XSys_GameMall) || this.CalMenuUIRedPoint(XSysDefine.XSys_Auction) || this.CalMenuUIRedPoint(XSysDefine.XSys_Reward) || this.CalMenuUIRedPoint(XSysDefine.XSys_Welfare) || this.CalMenuUIRedPoint(XSysDefine.Xsys_Backflow) || this.CalMenuUIRedPoint(XSysDefine.XSys_Strong) || this.CalMenuUIRedPoint(XSysDefine.XSys_Spectate) || this.CalMenuUIRedPoint(XSysDefine.XSys_OperatingActivity) || this.CalMenuUIRedPoint(XSysDefine.XSys_Welfare_FirstRechange) || this.CalMenuUIRedPoint(XSysDefine.XSys_SevenActivity) || this.CalMenuUIRedPoint(XSysDefine.XSys_ThemeActivity) || this.CalMenuUIRedPoint(XSysDefine.XSys_Carnival));
				}
			}
		}

		// Token: 0x06010C12 RID: 68626 RVA: 0x00431E08 File Offset: 0x00430008
		private void OnMenuSwitchBtnClick(IXUISprite iSp)
		{
			if (base.IsLoaded())
			{
				this._MenuSwitchBtnState = !this._MenuSwitchBtnState;
				this.CalMenuSwitchBtnRedPointState();
				int tweenGroup = this._MenuSwitchBtnState ? 1 : 2;
				base.uiBehaviour.m_MenuSwitchBtnTween.SetTweenGroup(tweenGroup);
				if (this.m_curScene == SceneType.SCENE_HALL)
				{
					base.uiBehaviour.m_SysListH0Tween.SetTweenGroup(tweenGroup);
					base.uiBehaviour.m_SysListH0Tween.PlayTween(true, -1f);
				}
				else
				{
					if (this.m_curScene == SceneType.SCENE_GUILD_HALL)
					{
						base.uiBehaviour.m_SysListH2Tween.SetTweenGroup(tweenGroup);
						base.uiBehaviour.m_SysListH2Tween.PlayTween(true, -1f);
					}
					else
					{
						if (this.m_curScene == SceneType.SCENE_FAMILYGARDEN)
						{
							base.uiBehaviour.m_SysListH3Tween.SetTweenGroup(tweenGroup);
							base.uiBehaviour.m_SysListH3Tween.PlayTween(true, -1f);
						}
					}
				}
				base.uiBehaviour.m_SysListH1Tween.SetTweenGroup(tweenGroup);
				base.uiBehaviour.m_SysListH1Tween.PlayTween(true, -1f);
				base.uiBehaviour.m_MenuSwitchBtnTween.PlayTween(true, -1f);
			}
		}

		// Token: 0x06010C13 RID: 68627 RVA: 0x00431F50 File Offset: 0x00430150
		public void CalMenuSwitchBtnRedPointState()
		{
			if (base.IsVisible())
			{
				GameObject gameObject = base.uiBehaviour.m_MenuSwitchBtn.gameObject.transform.Find("RedPoint").gameObject;
				if (this._MenuSwitchBtnState)
				{
					if (this.m_curScene == SceneType.SCENE_HALL)
					{
						gameObject.SetActive(this.CalMenuUIRedPoint(XSysDefine.XSys_Friends) || this.CalMenuUIRedPoint(XSysDefine.XSys_Home) || this.CalMenuUIRedPoint(XSysDefine.XSys_Rank) || this.CalMenuUIRedPoint(XSysDefine.XSys_CardCollect) || this.CalMenuUIRedPoint(XSysDefine.XSys_NPCFavor));
					}
					else
                    {
                        if (this.m_curScene == SceneType.SCENE_GUILD_HALL)
						{
							gameObject.SetActive(this.CalMenuUIRedPoint(XSysDefine.XSys_GuildHall) || this.CalMenuUIRedPoint(XSysDefine.XSys_GuildRelax));
						}
					}
				}
				else
				{
					bool flag4 = false;
					foreach (XSysDefine sys in base.uiBehaviour.m_SysH1)
					{
						flag4 = (flag4 || this.CalMenuUIRedPoint(sys));
					}
					gameObject.SetActive(flag4);
				}
			}
		}

		// Token: 0x06010C14 RID: 68628 RVA: 0x0043208C File Offset: 0x0043028C
		private bool CalMenuUIRedPoint(XSysDefine sys)
		{
			return XSingleton<XGameSysMgr>.singleton.IsSystemOpened(sys) && XSingleton<XGameSysMgr>.singleton.GetSysRedPointStateConsiderBlock(sys);
		}

		// Token: 0x06010C15 RID: 68629 RVA: 0x004320BC File Offset: 0x004302BC
		private void RefreshListSwitchBtnVisable(IXUIObject iSp, IXUIList uiList, IXUIList uiList2 = null)
		{
			bool flag = false;
			for (int i = 0; i < uiList.gameObject.transform.childCount; i++)
			{
				Transform child = uiList.gameObject.transform.GetChild(i);
				if (child.gameObject.activeSelf)
				{
					flag = true;
					break;
				}
			}
			if (uiList2 == null || flag)
			{
				iSp.SetVisible(flag);
			}
			else
			{
				for (int j = 0; j < uiList2.gameObject.transform.childCount; j++)
				{
					Transform child2 = uiList2.gameObject.transform.GetChild(j);
					if (child2.gameObject.activeSelf)
					{
						flag = true;
						break;
					}
				}
				iSp.SetVisible(flag);
			}
		}

		// Token: 0x06010C16 RID: 68630 RVA: 0x00432188 File Offset: 0x00430388
		private void RefreshV3H1OnOtherScene()
		{
			foreach (XSysDefine sys in base.uiBehaviour.m_SysV3)
			{
				this.OnSingleSysChange(sys, false);
			}
			base.uiBehaviour.m_SysListV3.Refresh();
			foreach (XSysDefine sys2 in base.uiBehaviour.m_SysH1)
			{
				this.OnSingleSysChange(sys2, false);
			}
			base.uiBehaviour.m_SysListH1.Refresh();
		}

		// Token: 0x06010C17 RID: 68631 RVA: 0x00432254 File Offset: 0x00430454
		public bool IsSupportQgame()
		{
			bool flag = XSingleton<XLoginDocument>.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ;
			bool flag2 = SystemInfo.processorType.StartsWith("Intel");
			bool flag3 = SystemInfo.systemMemorySize >= XSingleton<XGlobalConfig>.singleton.GetInt("QGameMemory");
			return /*XSingleton<XUpdater.XUpdater>.singleton.XBroadCast.IsBroadState() &&*/ flag && !flag2 && flag3;
		}

		// Token: 0x06010C18 RID: 68632 RVA: 0x004322BC File Offset: 0x004304BC
		private bool OnQGameClick(IXUIButton btn)
		{
			if (DlgBase<ReplaykitDlg, ReplayBehaviour>.singleton.isPlaying)
			{
				XSingleton<UiUtility>.singleton.ShowSystemTip(XStringDefineProxy.GetString("Replay_IsPlaying"), "fece00");
				return false;
			}

			XRadioDocument specificDocument = XDocuments.GetSpecificDocument<XRadioDocument>(XRadioDocument.uuID);
			if (specificDocument.roomState == XRadioDocument.BigRoomState.OutRoom)
			{
				//XSingleton<XUpdater.XUpdater>.singleton.XBroadCast.EnterHall();
				PtcC2G_CloseHintNtf ptcC2G_CloseHintNtf = new PtcC2G_CloseHintNtf();
				ptcC2G_CloseHintNtf.Data.systemid = 80U;
				XSingleton<XClientNetwork>.singleton.Send(ptcC2G_CloseHintNtf);
			}
			else
			{
				XSingleton<UiUtility>.singleton.ShowSystemTip(XStringDefineProxy.GetString("ERR_FM_FORBID1"), "fece00");
			}
			return true;
		}

		// Token: 0x06010C19 RID: 68633 RVA: 0x00432368 File Offset: 0x00430568
		public void RefreshGuildCollectTime(int time, int summonTime)
		{
			base.uiBehaviour.m_GuildCollectLeftTime.SetText(XSingleton<UiUtility>.singleton.TimeFormatString(time, 2, 3, 4, false, true));
			base.uiBehaviour.m_GuildCollectSummonTime.SetText(XSingleton<UiUtility>.singleton.TimeFormatString(summonTime, 2, 3, 4, false, true));
		}

		// Token: 0x06010C1A RID: 68634 RVA: 0x004323B8 File Offset: 0x004305B8
		public void OnShowFlowBack()
		{
			Transform uiroot = XSingleton<UIManager>.singleton.UIRoot;
			if (uiroot != null)
			{
				Transform transform = uiroot.Find("Camera");
				if (transform != null)
				{
					XFx xfx = XSingleton<XFxMgr>.singleton.CreateUIFx("Effects/FX_Particle/UIfx/UI_huanyinghuigu", transform, false);
					if (xfx != null)
					{
						float num = 1.3f;
						xfx.DelayDestroy = num;
						XSingleton<XFxMgr>.singleton.DestroyFx(xfx, false);
						XSingleton<XTimerMgr>.singleton.SetTimer(num, delegate(object param)
						{
							string @string = XStringDefineProxy.GetString("BackFlowWelcom");
							string string2 = XStringDefineProxy.GetString("BackFlowWelcomCotent");
							XSingleton<UiUtility>.singleton.ShowModalDialogWithTitle(@string, string2, XStringDefineProxy.GetString(XStringDefine.COMMON_OK), delegate(IXUIButton button)
							{
								this.MainDoc.BackFlow = false;
								DlgBase<ModalDlg, ModalDlgBehaviour>.singleton.SetVisible(false, true);
								XSingleton<XShell>.singleton.Pause = false;
								return true;
							}, 50);
						}, null);
					}
				}
			}
		}

		// Token: 0x06010C1B RID: 68635 RVA: 0x00432450 File Offset: 0x00430650
		public void SetTransformLeftTime(float time)
		{
			if (base.IsLoaded())
			{
				base.uiBehaviour.m_TransformLeftTime.SetLeftTime(time, -1);
			}
		}

		// Token: 0x04007A50 RID: 31312
		private bool _bH1Opened;

		// Token: 0x04007A51 RID: 31313
		private int _curPPT = 0;

		// Token: 0x04007A52 RID: 31314
		private XAchievementDocument _achievement_doc = null;

		// Token: 0x04007A53 RID: 31315
		private XMainInterfaceDocument _main_doc = null;

		// Token: 0x04007A54 RID: 31316
		private IPlatform _platform = null;

		// Token: 0x04007A55 RID: 31317
		private SceneType m_curScene;

		// Token: 0x04007A56 RID: 31318
		private DateTime _fatigePressTime = DateTime.Now;

		// Token: 0x04007A57 RID: 31319
		private uint _pressToken = 0U;

		// Token: 0x04007A58 RID: 31320
		private uint _fatigeRefreshToken = 0U;

		// Token: 0x04007A59 RID: 31321
		private DateTime _last_power_sound_time = DateTime.Now;

		// Token: 0x04007A5A RID: 31322
		public XMainInterfaceBriefHandler _TaskNaviHandler;

		// Token: 0x04007A5B RID: 31323
		public SkyArenaWaitHandler _WaitHandler;

		// Token: 0x04007A5C RID: 31324
		public HomeHandler _HomeHandler;

		// Token: 0x04007A5D RID: 31325
		public XYuyinView _yuyinHandler;

		// Token: 0x04007A5E RID: 31326
		public WeddingSceneHandler _WeddingHandler;

		// Token: 0x04007A5F RID: 31327
		public YorozuyaHandler _yorozuyaHandler;

		// Token: 0x04007A60 RID: 31328
		public DanceMotionHandler _DanceMotionHandler;

		// Token: 0x04007A61 RID: 31329
		public XMainSubstanceHandler _substanceHandler;

		// Token: 0x04007A62 RID: 31330
		public float DramaDlgCloseTime = 0f;

		// Token: 0x04007A63 RID: 31331
		private int _curExpInd = 0;

		// Token: 0x04007A64 RID: 31332
		private int _maxExpCount = 4;

		// Token: 0x04007A65 RID: 31333
		private XTimerMgr.ElapsedEventHandler _refreshFatigeTimeCb = null;

		// Token: 0x04007A66 RID: 31334
		private XTimerMgr.ElapsedEventHandler _showFatigeRecoverTimeCb = null;

		// Token: 0x04007A67 RID: 31335
		private GameCommunityHandler _GameCommunityHandler = null;

		// Token: 0x04007A68 RID: 31336
		private bool _V3SwitchBtnState = false;

		// Token: 0x04007A69 RID: 31337
		private bool _MenuSwitchBtnState = true;

		// Token: 0x04007A6A RID: 31338
		private bool _H2SwitchBtnState = true;

		// Token: 0x04007A6B RID: 31339
		public uint MulActTipsToken;

		// Token: 0x04007A6C RID: 31340
		private int _MulActTipsCD;

		// Token: 0x04007A6D RID: 31341
		private XLeftTimeCounter _LevelSealCDCounter = null;

		// Token: 0x04007A6E RID: 31342
		private bool isLevelSealCountdown = false;

		// Token: 0x04007A6F RID: 31343
		private float lastPingTime = -60f;

		// Token: 0x04007A70 RID: 31344
		private float lastDebugUITrigger = -1f;

		// Token: 0x04007A71 RID: 31345
		public bool fakeShow = true;

		// Token: 0x04007A72 RID: 31346
		private XFx m_activityFx = null;

		// Token: 0x04007A73 RID: 31347
		private bool m_isFromTime = false;

		// Token: 0x04007A74 RID: 31348
		private float m_fClickTime = 0f;

		// Token: 0x04007A75 RID: 31349
		private IXUIButton lastSelectV3Button = null;
	}
}
